15 lines
363 B
JavaScript
15 lines
363 B
JavaScript
//// [emitDefaultParametersFunctionES6.ts]
|
|
function foo(x: string, y = 10) { }
|
|
function baz(x: string, y = 5, ...rest) { }
|
|
function bar(y = 10) { }
|
|
function bar1(y = 10, ...rest) { }
|
|
|
|
//// [emitDefaultParametersFunctionES6.js]
|
|
function foo(x, y = 10) {
|
|
}
|
|
function baz(x, y = 5, ...rest) {
|
|
}
|
|
function bar(y = 10) {
|
|
}
|
|
function bar1(y = 10, ...rest) {
|
|
}
|