d2-utilizr
Advanced tools
Comparing version 0.2.7 to 0.2.8
'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; }; | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -16,2 +14,4 @@ value: true | ||
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; } | ||
/** | ||
@@ -18,0 +18,0 @@ * Create an array from a value |
@@ -20,4 +20,4 @@ "use strict"; | ||
function clone(item) { | ||
return JSON.parse(JSON.stringify(item)); | ||
return window.JSON.parse(window.JSON.stringify(item)); | ||
} | ||
//# sourceMappingURL=clone.js.map |
'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; }; | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -9,2 +7,5 @@ value: true | ||
exports.default = isNumeric; | ||
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; } | ||
/** | ||
@@ -11,0 +12,0 @@ * Check if a value is numeric |
'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; }; | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -9,2 +7,5 @@ value: true | ||
exports.default = isPrimitive; | ||
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; } | ||
/** | ||
@@ -11,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.7", | ||
"version": "0.2.8", | ||
"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 JSON.parse(JSON.stringify(item)); | ||
return window.JSON.parse(window.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
103367