revert e5e2aca0c4
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
This commit is contained in:
21
node_modules/es5-ext/object/to-array.js
generated
vendored
Normal file
21
node_modules/es5-ext/object/to-array.js
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
|
||||
var callable = require("./valid-callable")
|
||||
, isValue = require("./is-value")
|
||||
, forEach = require("./for-each")
|
||||
, call = Function.prototype.call
|
||||
, defaultCb = function (value, key) { return [key, value]; };
|
||||
|
||||
module.exports = function (obj /*, cb, thisArg, compareFn*/) {
|
||||
var a = [], cb = arguments[1], thisArg = arguments[2];
|
||||
cb = isValue(cb) ? callable(cb) : defaultCb;
|
||||
|
||||
forEach(
|
||||
obj,
|
||||
function (value, key, targetObj, index) {
|
||||
a.push(call.call(cb, thisArg, value, key, this, index));
|
||||
},
|
||||
obj, arguments[3]
|
||||
);
|
||||
return a;
|
||||
};
|
Reference in New Issue
Block a user