Object.each >= 0.1.0
Purpose
Iterate over an object's properties
Syntax
Object.each
(
Objectobj
Functionfnc
);
Parameters
obj
fnc
Examples
var obj = {
a: 1,
b: 2,
c: 3
};
Object.each(obj, function eachEntry(value, key, obj) {
console.log(key, '=', value);
});>>> a = 1>>> b = 2>>> c = 3
Comments