Sha256: daeb5c39b9fccb6fc3fdaf82ff0b2c534473a3c7a3c89842307572ff40afc9ea
Contents?: true
Size: 355 Bytes
Versions: 29
Compression:
Stored size: 355 Bytes
Contents
'use strict'; var isPlainObject = require('./is-plain-object') , forEach = require('./for-each') , process; process = function self(value, key) { if (isPlainObject(value)) forEach(value, self, this); else this[key] = value; }; module.exports = function (obj) { var flattened = {}; forEach(obj, process, flattened); return flattened; };
Version data entries
29 entries across 19 versions & 7 rubygems