Object.each >= 0.1.0

Purpose

Iterate over an object's properties

Syntax

Object.each ( ObjectobjFunctionfnc );

Parameters

obj

fnc

Return values

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