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 objectObject - Source:
Returns:
- Type
- this
-
bind(that, …args) → {function}
-
Parameters:
Name Type Attributes Description thatObject args* <repeatable>
- Source:
Throws:
TypeErrorReturns:
- Type
- function
-
bindArray(that, args) → {function}
-
Parameters:
Name Type Description thatObject argsArray - 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 objectObject - 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 argsArray - Source:
Returns:
- Type
- function