each-component

Array / object / string iteration utility

each

Array / object / string iteration utility.

$ component install component/each

Iterate an array:

each([1,2,3], function(numi){
  
})

Iterate an object's key / value pairs:

each(conf, function(keyval){
  
})

Iterate an array-ish object (has numeric .length):

each(collection, function(vali){
  
})

Iterate a string's characters:

each('hello', function(ci){
  
})

License

MIT