5 lines
83 B
TypeScript
5 lines
83 B
TypeScript
function foo(...rest) {
|
|
var x: number = rest[0];
|
|
return x;
|
|
}
|