Skip to content

aredridel/monkeymap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monkeymap

Perform a map-like operation on any data type.

It handles ArrayArray, ObjectObject and scalar → scalar.

Use

var monkeymap = require('monkeymap');

monkeymap([1, 2, 3], function doubler(e, next) {
    next(null, e * 2);
}, function (err, result) {
    // result is [2, 4, 6];
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •