08-27-周三_17-09-29
This commit is contained in:
34
node_modules/graphlib/lib/lodash.js
generated
vendored
Normal file
34
node_modules/graphlib/lib/lodash.js
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
/* global window */
|
||||
|
||||
var lodash;
|
||||
|
||||
if (typeof require === "function") {
|
||||
try {
|
||||
lodash = {
|
||||
clone: require("lodash/clone"),
|
||||
constant: require("lodash/constant"),
|
||||
each: require("lodash/each"),
|
||||
filter: require("lodash/filter"),
|
||||
has: require("lodash/has"),
|
||||
isArray: require("lodash/isArray"),
|
||||
isEmpty: require("lodash/isEmpty"),
|
||||
isFunction: require("lodash/isFunction"),
|
||||
isUndefined: require("lodash/isUndefined"),
|
||||
keys: require("lodash/keys"),
|
||||
map: require("lodash/map"),
|
||||
reduce: require("lodash/reduce"),
|
||||
size: require("lodash/size"),
|
||||
transform: require("lodash/transform"),
|
||||
union: require("lodash/union"),
|
||||
values: require("lodash/values")
|
||||
};
|
||||
} catch (e) {
|
||||
// continue regardless of error
|
||||
}
|
||||
}
|
||||
|
||||
if (!lodash) {
|
||||
lodash = window._;
|
||||
}
|
||||
|
||||
module.exports = lodash;
|
Reference in New Issue
Block a user