repl.txt (526B)
1 2 {{alias}}( fcn[, thisArg] ) 3 Returns a function that invokes a provided function with arguments in 4 reverse order. 5 6 Parameters 7 ---------- 8 fcn: Function 9 Input function. 10 11 thisArg: any (optional) 12 Function context. 13 14 Returns 15 ------- 16 out: Function 17 Function with reversed arguments. 18 19 Examples 20 -------- 21 > function foo( a, b, c ) { return [ a, b, c ]; }; 22 > var bar = {{alias}}( foo ); 23 > var out = bar( 1, 2, 3 ) 24 [ 3, 2, 1 ] 25 26 See Also 27 -------- 28