frontend/.pnpm-store/v3/files/dc/9af6ffc76b85c16ed5fbae0ef36bfa00dcf896ff84f10b1d56528e4392cd392caa86e89147511d51060177345382daf48bfaaa5aff14f39c4ec5d6dc07fbfa

17 lines
354 B
Plaintext

"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;
};