1.0.0 • Published 7 years ago
for-object v1.0.0
for-object
a simple way to iterate through a plain js object
api
const forObject = require('for-object)
example
forObject({ foo: 'bar', bar: 'foo' }, (value, key, index) => {
// value
// key
// index
})