| // Generated by CoffeeScript 1.12.7 | |
| (function() { | |
| var assign, getValue, isArray, isEmpty, isFunction, isObject, isPlainObject, | |
| slice = [].slice, | |
| hasProp = {}.hasOwnProperty; | |
| assign = function() { | |
| var i, key, len, source, sources, target; | |
| target = arguments[0], sources = 2 <= arguments.length ? slice.call(arguments, 1) : []; | |
| if (isFunction(Object.assign)) { | |
| Object.assign.apply(null, arguments); | |
| } else { | |
| for (i = 0, len = sources.length; i < len; i++) { | |
| source = sources[i]; | |
| if (source != null) { | |
| for (key in source) { | |
| if (!hasProp.call(source, key)) continue; | |
| target[key] = source[key]; | |
| } | |
| } | |
| } | |
| } | |
| return target; | |
| }; | |
| isFunction = function(val) { | |
| return !!val && Object.prototype.toString.call(val) === '[object Function]'; | |
| }; | |
| isObject = function(val) { | |
| var ref; | |
| return !!val && ((ref = typeof val) === 'function' || ref === 'object'); | |
| }; | |
| isArray = function(val) { | |
| if (isFunction(Array.isArray)) { | |
| return Array.isArray(val); | |
| } else { | |
| return Object.prototype.toString.call(val) === '[object Array]'; | |
| } | |
| }; | |
| isEmpty = function(val) { | |
| var key; | |
| if (isArray(val)) { | |
| return !val.length; | |
| } else { | |
| for (key in val) { | |
| if (!hasProp.call(val, key)) continue; | |
| return false; | |
| } | |
| return true; | |
| } | |
| }; | |
| isPlainObject = function(val) { | |
| var ctor, proto; | |
| return isObject(val) && (proto = Object.getPrototypeOf(val)) && (ctor = proto.constructor) && (typeof ctor === 'function') && (ctor instanceof ctor) && (Function.prototype.toString.call(ctor) === Function.prototype.toString.call(Object)); | |
| }; | |
| getValue = function(obj) { | |
| if (isFunction(obj.valueOf)) { | |
| return obj.valueOf(); | |
| } else { | |
| return obj; | |
| } | |
| }; | |
| module.exports.assign = assign; | |
| module.exports.isFunction = isFunction; | |
| module.exports.isObject = isObject; | |
| module.exports.isArray = isArray; | |
| module.exports.isEmpty = isEmpty; | |
| module.exports.isPlainObject = isPlainObject; | |
| module.exports.getValue = getValue; | |
| }).call(this); | |
Xet Storage Details
- Size:
- 2.15 kB
- Xet hash:
- 2990a1916b92dcfe3d8aa586797509e1bb35d1d76d6ae88fa6e6f44823940ab7
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.