node package manager

util-invoke

Invoke

NPM version Build status Test coverage Gittip

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