Sha256: 60d69a1aee866802479c0768e92a6e2e85315a8eb8686f7387679a36a1579fb3
Contents?: true
Size: 527 Bytes
Versions: 69
Compression:
Stored size: 527 Bytes
Contents
var hasOwn = require('./hasOwn'); var forIn = require('./forIn'); /** * Similar to Array/forEach but works over object properties and fixes Don't * Enum bug on IE. * based on: http://whattheheadsaid.com/2010/10/a-safer-object-keys-compatibility-implementation */ function forOwn(obj, fn, thisObj){ forIn(obj, function(val, key){ if (hasOwn(obj, key)) { return fn.call(thisObj, obj[key], key, obj); } }); } module.exports = forOwn;
Version data entries
69 entries across 69 versions & 2 rubygems