Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/node_modules.1/es5-ext/object/
Upload File :
Current File : /home/infinitibizsol/.trash/node_modules.1/es5-ext/object/flatten.js

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

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists