]>
git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/vim-mode/node_modules/grim/node_modules/emissary/node_modules/es6-weak-map/node_modules/es5-ext/object/flatten.js
e8b40444a9469287160113beb8d5ba2df4655d47
3 var isPlainObject
= require('./is-plain-object')
4 , forEach
= require('./for-each')
8 process
= function self(value
, key
) {
9 if (isPlainObject(value
)) forEach(value
, self
, this);
10 else this[key
] = value
;
13 module
.exports = function (obj
) {
15 forEach(obj
, process
, flattened
);