1.0.1 • Published 6 years ago

obento-cp v1.0.1

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

obento-cp

obento-cp executes the registered function at high speed without using the for statement.

Installation

Yarn:

yarn add obento-cp

npm:

npm install --save obento-cp

Example

var cp = new require('obento-cp')();

var fc1 = function() {
  console.log('fc1');
}
var fc2 = function() {
  console.log('fc2');
}
cp.add(fc1);
cp.add(fc2);

cp.update();
// 'fc1'
// 'fc2'