-
-
Notifications
You must be signed in to change notification settings - Fork 806
/
Copy pathrepl.txt
37 lines (27 loc) · 818 Bytes
/
repl.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{{alias}}( fcn, arity[, thisArg] )
Returns a function that applies a specified number of arguments to a
provided function.
The returned function *always* invokes the wrapped function with a specified
number of arguments, even when the returned function is provided fewer
arguments.
The value for the missing arguments is equal to `undefined`.
Parameters
----------
fcn: Function
Input function.
arity: integer
Number of arguments.
thisArg: any (optional)
Function context.
Returns
-------
out: Function
Function wrapper.
Examples
--------
> function foo( a, b, c ) { return [ a, b, c ]; };
> var bar = {{alias}}( foo, 2 );
> var out = bar( 1, 2, 3 )
[ 1, 2, undefined ]
See Also
--------