Sha256: a9f1688ecd9174eb3a16a3de1b226aaad59b222743b1444854b26b1c28207669
Contents?: true
Size: 744 Bytes
Versions: 69
Compression:
Stored size: 744 Bytes
Contents
define(['./forOwn', '../lang/isPlainObject'], function (forOwn, isPlainObject) { /** * Mixes objects into the target object, recursively mixing existing child * objects. */ function deepMixIn(target, objects) { var i = 0, n = arguments.length, obj; while(++i < n){ obj = arguments[i]; if (obj) { forOwn(obj, copyProp, target); } } return target; } function copyProp(val, key) { var existing = this[key]; if (isPlainObject(val) && isPlainObject(existing)) { deepMixIn(existing, val); } else { this[key] = val; } } return deepMixIn; });
Version data entries
69 entries across 69 versions & 2 rubygems