first
This commit is contained in:
24
node_modules/webpack-merge/dist/utils.js
generated
vendored
Normal file
24
node_modules/webpack-merge/dist/utils.js
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
"use strict";
|
||||
exports.__esModule = true;
|
||||
exports.isUndefined = exports.isPlainObject = exports.isFunction = exports.isRegex = void 0;
|
||||
function isRegex(o) {
|
||||
return o instanceof RegExp;
|
||||
}
|
||||
exports.isRegex = isRegex;
|
||||
// https://stackoverflow.com/a/7356528/228885
|
||||
function isFunction(functionToCheck) {
|
||||
return (functionToCheck && {}.toString.call(functionToCheck) === "[object Function]");
|
||||
}
|
||||
exports.isFunction = isFunction;
|
||||
function isPlainObject(a) {
|
||||
if (a === null || Array.isArray(a)) {
|
||||
return false;
|
||||
}
|
||||
return typeof a === "object";
|
||||
}
|
||||
exports.isPlainObject = isPlainObject;
|
||||
function isUndefined(a) {
|
||||
return typeof a === "undefined";
|
||||
}
|
||||
exports.isUndefined = isUndefined;
|
||||
//# sourceMappingURL=utils.js.map
|
Reference in New Issue
Block a user