1.0.0 • Published 4 years ago

hyper-func v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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'}
}