d2-utilizr
Advanced tools
Comparing version 0.2.8 to 0.2.9
@@ -6,2 +6,5 @@ 'use strict'; | ||
}); | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
exports.default = arrayFrom; | ||
@@ -15,4 +18,2 @@ | ||
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; } | ||
/** | ||
@@ -19,0 +20,0 @@ * Create an array from a value |
@@ -20,4 +20,4 @@ "use strict"; | ||
function clone(item) { | ||
return window.JSON.parse(window.JSON.stringify(item)); | ||
return global.JSON.parse(global.JSON.stringify(item)); | ||
} | ||
//# sourceMappingURL=clone.js.map |
@@ -13,3 +13,3 @@ 'use strict'; | ||
get: function get() { | ||
return _isEmpty.default; | ||
return _interopRequireDefault(_isEmpty).default; | ||
} | ||
@@ -23,3 +23,3 @@ }); | ||
get: function get() { | ||
return _isDefined.default; | ||
return _interopRequireDefault(_isDefined).default; | ||
} | ||
@@ -33,3 +33,3 @@ }); | ||
get: function get() { | ||
return _isObject.default; | ||
return _interopRequireDefault(_isObject).default; | ||
} | ||
@@ -43,3 +43,3 @@ }); | ||
get: function get() { | ||
return _isFunction.default; | ||
return _interopRequireDefault(_isFunction).default; | ||
} | ||
@@ -53,3 +53,3 @@ }); | ||
get: function get() { | ||
return _isBoolean.default; | ||
return _interopRequireDefault(_isBoolean).default; | ||
} | ||
@@ -63,3 +63,3 @@ }); | ||
get: function get() { | ||
return _isPrimitive.default; | ||
return _interopRequireDefault(_isPrimitive).default; | ||
} | ||
@@ -73,3 +73,3 @@ }); | ||
get: function get() { | ||
return _isNumber.default; | ||
return _interopRequireDefault(_isNumber).default; | ||
} | ||
@@ -83,3 +83,3 @@ }); | ||
get: function get() { | ||
return _isString.default; | ||
return _interopRequireDefault(_isString).default; | ||
} | ||
@@ -93,3 +93,3 @@ }); | ||
get: function get() { | ||
return _isArray.default; | ||
return _interopRequireDefault(_isArray).default; | ||
} | ||
@@ -103,3 +103,3 @@ }); | ||
get: function get() { | ||
return _isNumeric.default; | ||
return _interopRequireDefault(_isNumeric).default; | ||
} | ||
@@ -113,3 +113,3 @@ }); | ||
get: function get() { | ||
return _numberConstrain.default; | ||
return _interopRequireDefault(_numberConstrain).default; | ||
} | ||
@@ -123,3 +123,3 @@ }); | ||
get: function get() { | ||
return _numberToFixed.default; | ||
return _interopRequireDefault(_numberToFixed).default; | ||
} | ||
@@ -133,3 +133,3 @@ }); | ||
get: function get() { | ||
return _stringReplaceAll.default; | ||
return _interopRequireDefault(_stringReplaceAll).default; | ||
} | ||
@@ -143,3 +143,3 @@ }); | ||
get: function get() { | ||
return _stringTrim.default; | ||
return _interopRequireDefault(_stringTrim).default; | ||
} | ||
@@ -153,3 +153,3 @@ }); | ||
get: function get() { | ||
return _camelCaseToUnderscores.default; | ||
return _interopRequireDefault(_camelCaseToUnderscores).default; | ||
} | ||
@@ -163,3 +163,3 @@ }); | ||
get: function get() { | ||
return _arrayPluck.default; | ||
return _interopRequireDefault(_arrayPluck).default; | ||
} | ||
@@ -173,3 +173,3 @@ }); | ||
get: function get() { | ||
return _arrayContains.default; | ||
return _interopRequireDefault(_arrayContains).default; | ||
} | ||
@@ -183,3 +183,3 @@ }); | ||
get: function get() { | ||
return _arrayUnique.default; | ||
return _interopRequireDefault(_arrayUnique).default; | ||
} | ||
@@ -193,3 +193,3 @@ }); | ||
get: function get() { | ||
return _arrayFrom.default; | ||
return _interopRequireDefault(_arrayFrom).default; | ||
} | ||
@@ -203,3 +203,3 @@ }); | ||
get: function get() { | ||
return _arrayTo.default; | ||
return _interopRequireDefault(_arrayTo).default; | ||
} | ||
@@ -213,3 +213,3 @@ }); | ||
get: function get() { | ||
return _arrayClean.default; | ||
return _interopRequireDefault(_arrayClean).default; | ||
} | ||
@@ -223,3 +223,3 @@ }); | ||
get: function get() { | ||
return _arraySort.default; | ||
return _interopRequireDefault(_arraySort).default; | ||
} | ||
@@ -233,3 +233,3 @@ }); | ||
get: function get() { | ||
return _arrayReplace.default; | ||
return _interopRequireDefault(_arrayReplace).default; | ||
} | ||
@@ -243,3 +243,3 @@ }); | ||
get: function get() { | ||
return _arrayInsert.default; | ||
return _interopRequireDefault(_arrayInsert).default; | ||
} | ||
@@ -253,3 +253,3 @@ }); | ||
get: function get() { | ||
return _arrayDifference.default; | ||
return _interopRequireDefault(_arrayDifference).default; | ||
} | ||
@@ -263,3 +263,3 @@ }); | ||
get: function get() { | ||
return _arrayMin.default; | ||
return _interopRequireDefault(_arrayMin).default; | ||
} | ||
@@ -273,3 +273,3 @@ }); | ||
get: function get() { | ||
return _arrayMax.default; | ||
return _interopRequireDefault(_arrayMax).default; | ||
} | ||
@@ -283,3 +283,3 @@ }); | ||
get: function get() { | ||
return _isArrayOfStrings.default; | ||
return _interopRequireDefault(_isArrayOfStrings).default; | ||
} | ||
@@ -293,3 +293,3 @@ }); | ||
get: function get() { | ||
return _isIE.default; | ||
return _interopRequireDefault(_isIE).default; | ||
} | ||
@@ -303,3 +303,3 @@ }); | ||
get: function get() { | ||
return _clone.default; | ||
return _interopRequireDefault(_clone).default; | ||
} | ||
@@ -313,3 +313,3 @@ }); | ||
get: function get() { | ||
return _uuid.default; | ||
return _interopRequireDefault(_uuid).default; | ||
} | ||
@@ -323,3 +323,3 @@ }); | ||
get: function get() { | ||
return _isIterable.default; | ||
return _interopRequireDefault(_isIterable).default; | ||
} | ||
@@ -326,0 +326,0 @@ }); |
@@ -6,6 +6,6 @@ 'use strict'; | ||
}); | ||
exports.default = isNumeric; | ||
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; } | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
exports.default = isNumeric; | ||
/** | ||
@@ -12,0 +12,0 @@ * Check if a value is numeric |
@@ -6,6 +6,6 @@ 'use strict'; | ||
}); | ||
exports.default = isPrimitive; | ||
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; } | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
exports.default = isPrimitive; | ||
/** | ||
@@ -12,0 +12,0 @@ * Check if a value is a _primitive_ (string, number, boolean) |
@@ -13,3 +13,3 @@ "use strict"; | ||
*/ | ||
var numberToFixed = (function () { | ||
var numberToFixed = function () { | ||
function fixedToFixed(value, precision) { | ||
@@ -31,5 +31,5 @@ precision = precision || 0; | ||
return standardToFixed; | ||
})(); | ||
}(); | ||
exports.default = numberToFixed; | ||
//# sourceMappingURL=numberToFixed.js.map |
{ | ||
"name": "d2-utilizr", | ||
"version": "0.2.8", | ||
"version": "0.2.9", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -14,3 +14,3 @@ // TODO: Throw an error on empty `item` (Unexpected token u) | ||
export default function clone(item) { | ||
return window.JSON.parse(window.JSON.stringify(item)); | ||
return global.JSON.parse(global.JSON.stringify(item)); | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
103863
107
1878