Functional utility for invoking the same method on every call in JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
invoke.js
package.json
test.js

README.md

Invoke

NPM version Build status Test coverage Greenkeeper badge

Functional utility for creating a function that will invoke the same method on every passed in object.

Installation

npm install util-invoke --save

Usage

var children = [1, 2, 3, true];

children.map(invoke('toString', 10)); //=> ['1', '2', '3', 'true']

License

MIT