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