README
loop 1.0.13
javascript easy loop (function level loop)
Install
npm
npm install loop-vomvo
bower
bower install loop-vomvo
nodeJS
var loop = require('loop-vomvo')
Use
loop(object, callback, this(default object));
// callback info
// callback(value, name, self)
example
var arr = ['a']
loop(arr, function(value, name, self){
console log('value: '+value); // value: a
console log('name: '+name); // name: 0
console log('self: '+self); // self: ['a']
console log('this: '+this); // this: ['a']
})
var obj = {
a: 'a value'
}
loop(obj, function(value, name, self){
console log('value: '+value); // value: a value
console log('name: '+name); // name: a
console log('self: '+self); // o: {'a': 'a value'}
console log('this: '+this); // this: ['a']
}, arr)
Release History
- 2014-09-09
v1.0.13 add grunt-common-require
- 2014-08-30
v1.0.7 update build module(grunt-to-commonjs, checkjs-vomvo) and update testfile.
v1.0.8 ignore dist. build update
v1.0.9 bower install checkjs-vomvo => npm install checkjs-vomvo
... (no write history)
2014-06-21
v0.0.0