Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Latest commit

 

History

History
35 lines (25 loc) · 1.06 KB

README.md

File metadata and controls

35 lines (25 loc) · 1.06 KB

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