增加晶全app静态页面
This commit is contained in:
16
node_modules/es5-ext/object/flatten.js
generated
vendored
Normal file
16
node_modules/es5-ext/object/flatten.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
"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;
|
||||
};
|
Reference in New Issue
Block a user