app/Resources/static-src/common/axis.js
(开头部分) 925B这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define([], factory);
} else if (typeof exports === 'object') {
module.exports = factory();
} else {
root.axis = factory();
}
}(this, function () {
'use strict';
var axis = {};
var types = 'Array Object String Date RegExp Function Boolean Number Null Undefined'.split(' ');
function type() {
return Object.prototype.toString.call(this).slice(8, -1);
}
for (var i = types.length; i--;) {
axis['is' + types[i]] = (function (self) {
return function (elem) {
return type.call(elem) === self;
};
})(types[i]);
}
return axis;
}));
// axis.isArray([]);
// axis.isObject({});
// axis.isString('');
// axis.isDate(new Date());
// axis.isRegExp(/test/i);
// axis.isFunction(function () {});
// axis.isBoolean(true);
// axis.isNumber(1);
// axis.isNull(null);
// axis.isUndefined();
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。