TypeScript/tests/cases/compiler/argumentsObjectIterator03_ES5.ts

9 lines
173 B
TypeScript
Raw Normal View History

2015-05-29 23:59:19 +02:00
//@target: ES5
function asReversedTuple(a: number, b: string, c: boolean): [boolean, string, number] {
let [x, y, z] = arguments;
return [z, y, x];
}