revert Merge branch 'main' of http://47.107.152.87:3000/liubiao/APP # Conflicts: # .gitignore # pages/common/index/index.vue # unpackage/dist/dev/app-plus/app-config-service.js # unpackage/dist/dev/app-plus/app-service.js # unpackage/dist/dev/app-plus/app-view.js # unpackage/dist/dev/app-plus/manifest.json # utils/request.js
17 lines
354 B
JavaScript
17 lines
354 B
JavaScript
"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;
|
|
};
|