hyper-func
v1.0.0
Published
a utility to call a function multi-times with hyper params
Downloads
3
Readme
Installation
npm install hyper-func
Examples / How to use
const hyper = require('hyper-func');
let branches = {
n: 'one',
color: ['white', 'yellow'],
type: ['dog', 'cat'],
}
hyper(branches, function callback(name,param) {
//This Callback gonna be called 4 times with params:
//'one white dog', {n:'one',color:'white',type:'dog'}
//'one yellow dog', {n:'one',color:'yellow',type:'dog'}
//'one white cat', {n:'one',color:'white',type:'cat'}
//'one yellow cat', {n:'one',color:'yellow',type:'cat'}
}