//// [restParamAsOptional.ts]
function f(...x?) { }
function f2(...x = []) { }
//// [restParamAsOptional.js]
function f() { }
function f2() { }