Turns any function into an array mapping
Install with component(1):
$ component install bredele/mapify
varmapify=require('mapify');varsquare=mapify(function(n){returnn*n;});square([1,2,3]);// [1,4,9]Mapify get nicer when use with get.
vararr=[{name: 'olivier',age: '27'},{name: 'amy'age: '26'}];mapify(get('name'))(arr);// ['olivier', 'amy']MIT