//// [argumentsObjectIterator01_ES6.ts]
function doubleAndReturnAsArray(x: number, y: number, z: number): [number, number, number] {
    let result = [];
    for (let arg of arguments) {
        result.push(arg + arg);
    }
    return <[any, any, any]>result;
}

//// [argumentsObjectIterator01_ES6.js]
function doubleAndReturnAsArray(x, y, z) {
    let result = [];
    for (let arg of arguments) {
        result.push(arg + arg);
    }
    return result;
}
