Sha256: 2e258db8646830c0ed6cea01aa95fb04eb0aefcb345d814d8b9709adb541f566
Contents?: true
Size: 355 Bytes
Versions: 46
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
46 entries across 46 versions & 3 rubygems