14 lines
318 B
TypeScript
14 lines
318 B
TypeScript
//// [functionWithDefaultParameterWithNoStatements9.ts]
|
|
function foo(a = console.log) { }
|
|
|
|
function bar(a = console.log) {
|
|
}
|
|
|
|
//// [functionWithDefaultParameterWithNoStatements9.js]
|
|
function foo(a) {
|
|
if (a === void 0) { a = console.log; }
|
|
}
|
|
function bar(a) {
|
|
if (a === void 0) { a = console.log; }
|
|
}
|