d2-utilizr
Advanced tools
Comparing version 0.2.9 to 0.2.10
'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", { | ||
value: true | ||
}); | ||
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; | ||
@@ -10,0 +9,0 @@ |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.isIterable = exports.uuid = exports.clone = exports.isIE = exports.isArrayOfStrings = exports.arrayMax = exports.arrayMin = exports.arrayDifference = exports.arrayInsert = exports.arrayReplace = exports.arraySort = exports.arrayClean = exports.arrayTo = exports.arrayFrom = exports.arrayUnique = exports.arrayContains = exports.arrayPluck = exports.camelCaseToUnderscores = exports.stringTrim = exports.stringReplaceAll = exports.numberToFixed = exports.numberConstrain = exports.isNumeric = exports.isArray = exports.isString = exports.isNumber = exports.isPrimitive = exports.isBoolean = exports.isFunction = exports.isObject = exports.isDefined = exports.isEmpty = undefined; | ||
exports.isIterable = exports.uuid = exports.clone = exports.isIE = exports.isArrayOfStrings = exports.arrayMax = exports.arrayMin = exports.arrayDifference = exports.arrayInsert = exports.arrayReplace = exports.arraySort = exports.arrayClean = exports.arrayTo = exports.arrayFrom = exports.arrayUnique = exports.arrayContains = exports.arrayPluck = exports.camelCaseToUnderscores = exports.stringTrim = exports.stringReplaceAll = exports.numberIsFinite = exports.numberToFixed = exports.numberConstrain = exports.isNumeric = exports.isArray = exports.isString = exports.isNumber = exports.isPrimitive = exports.isBoolean = exports.isFunction = exports.isObject = exports.isDefined = exports.isEmpty = undefined; | ||
@@ -14,3 +14,3 @@ var _isEmpty = require('./isEmpty'); | ||
get: function get() { | ||
return _interopRequireDefault(_isEmpty).default; | ||
return _isEmpty.default; | ||
} | ||
@@ -24,3 +24,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_isDefined).default; | ||
return _isDefined.default; | ||
} | ||
@@ -34,3 +34,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_isObject).default; | ||
return _isObject.default; | ||
} | ||
@@ -44,3 +44,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_isFunction).default; | ||
return _isFunction.default; | ||
} | ||
@@ -54,3 +54,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_isBoolean).default; | ||
return _isBoolean.default; | ||
} | ||
@@ -64,3 +64,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_isPrimitive).default; | ||
return _isPrimitive.default; | ||
} | ||
@@ -74,3 +74,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_isNumber).default; | ||
return _isNumber.default; | ||
} | ||
@@ -84,3 +84,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_isString).default; | ||
return _isString.default; | ||
} | ||
@@ -94,3 +94,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_isArray).default; | ||
return _isArray.default; | ||
} | ||
@@ -104,3 +104,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_isNumeric).default; | ||
return _isNumeric.default; | ||
} | ||
@@ -114,3 +114,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_numberConstrain).default; | ||
return _numberConstrain.default; | ||
} | ||
@@ -124,6 +124,15 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_numberToFixed).default; | ||
return _numberToFixed.default; | ||
} | ||
}); | ||
var _numberIsFinite = require('./numberIsFinite'); | ||
Object.defineProperty(exports, 'numberIsFinite', { | ||
enumerable: true, | ||
get: function get() { | ||
return _numberIsFinite.default; | ||
} | ||
}); | ||
var _stringReplaceAll = require('./stringReplaceAll'); | ||
@@ -134,3 +143,3 @@ | ||
get: function get() { | ||
return _interopRequireDefault(_stringReplaceAll).default; | ||
return _stringReplaceAll.default; | ||
} | ||
@@ -144,3 +153,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_stringTrim).default; | ||
return _stringTrim.default; | ||
} | ||
@@ -154,3 +163,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_camelCaseToUnderscores).default; | ||
return _camelCaseToUnderscores.default; | ||
} | ||
@@ -164,3 +173,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_arrayPluck).default; | ||
return _arrayPluck.default; | ||
} | ||
@@ -174,3 +183,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_arrayContains).default; | ||
return _arrayContains.default; | ||
} | ||
@@ -184,3 +193,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_arrayUnique).default; | ||
return _arrayUnique.default; | ||
} | ||
@@ -194,3 +203,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_arrayFrom).default; | ||
return _arrayFrom.default; | ||
} | ||
@@ -204,3 +213,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_arrayTo).default; | ||
return _arrayTo.default; | ||
} | ||
@@ -214,3 +223,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_arrayClean).default; | ||
return _arrayClean.default; | ||
} | ||
@@ -224,3 +233,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_arraySort).default; | ||
return _arraySort.default; | ||
} | ||
@@ -234,3 +243,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_arrayReplace).default; | ||
return _arrayReplace.default; | ||
} | ||
@@ -244,3 +253,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_arrayInsert).default; | ||
return _arrayInsert.default; | ||
} | ||
@@ -254,3 +263,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_arrayDifference).default; | ||
return _arrayDifference.default; | ||
} | ||
@@ -264,3 +273,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_arrayMin).default; | ||
return _arrayMin.default; | ||
} | ||
@@ -274,3 +283,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_arrayMax).default; | ||
return _arrayMax.default; | ||
} | ||
@@ -284,3 +293,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_isArrayOfStrings).default; | ||
return _isArrayOfStrings.default; | ||
} | ||
@@ -294,3 +303,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_isIE).default; | ||
return _isIE.default; | ||
} | ||
@@ -304,3 +313,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_clone).default; | ||
return _clone.default; | ||
} | ||
@@ -314,3 +323,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_uuid).default; | ||
return _uuid.default; | ||
} | ||
@@ -324,3 +333,3 @@ }); | ||
get: function get() { | ||
return _interopRequireDefault(_isIterable).default; | ||
return _isIterable.default; | ||
} | ||
@@ -327,0 +336,0 @@ }); |
@@ -7,2 +7,9 @@ 'use strict'; | ||
exports.default = isNumber; | ||
var _numberIsFinite = require('./numberIsFinite'); | ||
var _numberIsFinite2 = _interopRequireDefault(_numberIsFinite); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -16,4 +23,4 @@ * Check if a value is a number | ||
function isNumber(param) { | ||
return typeof param === 'number' && Number.isFinite(param); | ||
return typeof param === 'number' && (0, _numberIsFinite2.default)(param); | ||
} | ||
//# sourceMappingURL=isNumber.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", { | ||
value: true | ||
}); | ||
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; | ||
@@ -10,0 +9,0 @@ /** |
'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", { | ||
value: true | ||
}); | ||
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; | ||
@@ -10,0 +9,0 @@ /** |
{ | ||
"name": "d2-utilizr", | ||
"version": "0.2.9", | ||
"version": "0.2.10", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -24,2 +24,3 @@ import isEmpty from './isEmpty'; | ||
export {default as numberToFixed} from './numberToFixed'; | ||
export {default as numberIsFinite} from './numberIsFinite'; | ||
@@ -26,0 +27,0 @@ // String functions |
@@ -0,1 +1,2 @@ | ||
import numberIsFinite from './numberIsFinite'; | ||
/** | ||
@@ -9,3 +10,3 @@ * Check if a value is a number | ||
export default function isNumber(param) { | ||
return typeof param === 'number' && Number.isFinite(param); | ||
return typeof param === 'number' && numberIsFinite(param); | ||
} |
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
104883
110
1912