10 lines
245 B
TypeScript
10 lines
245 B
TypeScript
//// [functionCall15.ts]
|
|
function foo(a?:string, b?:number, ...b:number[]){}
|
|
|
|
//// [functionCall15.js]
|
|
function foo(a, b) {
|
|
var b = [];
|
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
b[_i - 2] = arguments[_i];
|
|
}
|
|
}
|