Methods
(inner) apply(fn, args) → {any}
Apply a function to an argument list.
Parameters:
Name | Type | Description |
---|---|---|
fn |
function | |
args |
array |
Returns:
- Type
- any
Example
let apply = require('102f/src/apply')
let arr = [0, 1, 2, 3]
apply(Math.max, arr) // 3