new Function()
- Source:
Methods
-
(static) is(value) → {Boolean}
-
Determines whether the given value is a function.
Parameters:
Name Type Description value
* - Source:
Returns:
- Type
- Boolean
-
assign(object) → {this}
-
Assigns properties of the given object directly into the function as static properties.
Parameters:
Name Type Description object
Object - Source:
Returns:
- Type
- this
-
bind(that, …args) → {function}
-
Parameters:
Name Type Attributes Description that
Object args
* <repeatable>
- Source:
Throws:
TypeErrorReturns:
- Type
- function
-
bindArray(that, args) → {function}
-
Parameters:
Name Type Description that
Object args
Array - Source:
Throws:
TypeErrorReturns:
- Type
- function
-
bindList()
-
Alias for Function#bindArray
- Deprecated:
- since v0.3.1
- Source:
-
mixin(object) → {this}
-
Assigns properties of the given object into the function's prototype.
Parameters:
Name Type Description object
Object - Source:
Returns:
- Type
- this
-
tie(…args) → {function}
-
Similar to bind, but with dynamic `this`
Parameters:
Name Type Attributes Description args
* <repeatable>
- Source:
Returns:
- Type
- function
-
tieArray(args) → {function}
-
Parameters:
Name Type Description args
Array - Source:
Returns:
- Type
- function