calculate-from-index-x
Advanced tools
Comparing version 2.0.1 to 2.1.0
/** | ||
* @file Calculates a fromIndex of a given value for an array. | ||
* @version 2.0.1 | ||
* @version 2.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -5,0 +5,0 @@ * @copyright Xotic750 |
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.returnExports = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ | ||
/** | ||
* @file Calculates a fromIndex of a given value for an array. | ||
* @version 2.0.1 | ||
* @version 2.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -45,3 +45,3 @@ * @copyright Xotic750 | ||
},{"is-array-like-x":4,"to-integer-x":20,"to-length-x":21,"to-object-x":23}],2:[function(_dereq_,module,exports){ | ||
},{"is-array-like-x":4,"to-integer-x":22,"to-length-x":23,"to-object-x":25}],2:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -90,3 +90,3 @@ * @file Tests if ES6 Symbol is supported. | ||
* @file Determine if a value is array like. | ||
* @version 1.5.1 | ||
* @version 1.7.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -102,3 +102,3 @@ * @copyright Xotic750 | ||
var isFunction = _dereq_('is-function-x'); | ||
var isLength = _dereq_('lodash.islength'); | ||
var isLength = _dereq_('is-length-x'); | ||
@@ -124,3 +124,3 @@ /** | ||
},{"is-function-x":7,"is-nil-x":9,"lodash.islength":13}],5:[function(_dereq_,module,exports){ | ||
},{"is-function-x":7,"is-length-x":9,"is-nil-x":11}],5:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
@@ -187,3 +187,3 @@ | ||
},{"is-nan-x":8}],7:[function(_dereq_,module,exports){ | ||
},{"is-nan-x":10}],7:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -293,4 +293,77 @@ * @file Determine whether a given value is a function object. | ||
},{"has-to-string-tag-x":3,"is-primitive":10,"normalize-space-x":17,"replace-comments-x":18,"to-string-tag-x":25}],8:[function(_dereq_,module,exports){ | ||
},{"has-to-string-tag-x":3,"is-primitive":12,"normalize-space-x":19,"replace-comments-x":20,"to-string-tag-x":27}],8:[function(_dereq_,module,exports){ | ||
/** | ||
* @file Determine whether the passed value is an integer. | ||
* @version 1.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
* @copyright Xotic750 | ||
* @license {@link <https://opensource.org/licenses/MIT> MIT} | ||
* @module is-integer-x | ||
*/ | ||
'use strict'; | ||
var numberIsFinite = _dereq_('is-finite-x'); | ||
var toInteger = _dereq_('to-integer-x'); | ||
/** | ||
* This method determines whether the passed value is an integer. | ||
* | ||
* @param {*} value - The value to be tested for being an integer. | ||
* @returns {boolean} A Boolean indicating whether or not the given value is an integer. | ||
* @example | ||
* var isInteger = require('is-integer-x'); | ||
* | ||
* isInteger(0); // true | ||
* isInteger(1); // true | ||
* isInteger(-100000); // true | ||
* | ||
* isInteger(0.1); // false | ||
* isInteger(Math.PI); // false | ||
* | ||
* isInteger(NaN); // false | ||
* isInteger(Infinity); // false | ||
* isInteger(-Infinity); // false | ||
* isInteger('10'); // false | ||
* isInteger(true); // false | ||
* isInteger(false); // false | ||
* isInteger([1]); // false | ||
*/ | ||
module.exports = function isInteger(value) { | ||
return numberIsFinite(value) && toInteger(value) === value; | ||
}; | ||
},{"is-finite-x":6,"to-integer-x":22}],9:[function(_dereq_,module,exports){ | ||
/** | ||
* @file Checks if `value` is a valid array-like length. | ||
* @version 2.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
* @copyright Xotic750 | ||
* @license {@link <https://opensource.org/licenses/MIT> MIT} | ||
* @module is-length-x | ||
*/ | ||
'use strict'; | ||
var isSafeInteger = _dereq_('is-safe-integer-x'); | ||
/** | ||
* This method checks if `value` is a valid array-like length. | ||
* | ||
* @param {*} value - The value to check. | ||
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`. | ||
* @example | ||
* var isLength = require('is-length-x'); | ||
* | ||
* isLength(3); // => true | ||
* isLength(Number.MIN_VALUE); // => false | ||
* isLength(Infinity); // => false | ||
* isLength('3'); // => false | ||
*/ | ||
module.exports = function isLength(value) { | ||
return isSafeInteger(value) && value >= 0; | ||
}; | ||
},{"is-safe-integer-x":13}],10:[function(_dereq_,module,exports){ | ||
/** | ||
* @file ES6-compliant shim for Number.isNaN - the global isNaN returns false positives. | ||
@@ -339,3 +412,3 @@ * @version 1.0.1 | ||
},{}],9:[function(_dereq_,module,exports){ | ||
},{}],11:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -371,3 +444,3 @@ * @file Checks if `value` is `null` or `undefined`. | ||
},{"lodash.isnull":14,"validate.io-undefined":30}],10:[function(_dereq_,module,exports){ | ||
},{"lodash.isnull":16,"validate.io-undefined":32}],12:[function(_dereq_,module,exports){ | ||
/*! | ||
@@ -387,5 +460,54 @@ * is-primitive <https://github.com/jonschlinkert/is-primitive> | ||
},{}],11:[function(_dereq_,module,exports){ | ||
},{}],13:[function(_dereq_,module,exports){ | ||
/** | ||
* @file Determine whether the passed value is a safe integer. | ||
* @version 1.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
* @copyright Xotic750 | ||
* @license {@link <https://opensource.org/licenses/MIT> MIT} | ||
* @module is-safe-integer-x | ||
*/ | ||
'use strict'; | ||
var isInteger = _dereq_('is-integer-x'); | ||
var MAX_SAFE_INTEGER = _dereq_('max-safe-integer'); | ||
var MIN_SAFE_INTEGER = -MAX_SAFE_INTEGER; | ||
/** | ||
* This method determines whether the passed value is a safe integer. | ||
* | ||
* Can be exactly represented as an IEEE-754 double precision number, and | ||
* whose IEEE-754 representation cannot be the result of rounding any other | ||
* integer to fit the IEEE-754 representation. | ||
* | ||
* @param {*} value - The value to be tested for being a safe integer. | ||
* @returns {boolean} A Boolean indicating whether or not the given value is a | ||
* safe integer. | ||
* @example | ||
* var isSafeInteger = require('is-safe-integer-x'); | ||
* | ||
* isSafeInteger(0); // true | ||
* isSafeInteger(1); // true | ||
* isSafeInteger(-100000); // true | ||
* | ||
* isSafeInteger(Math.pow(2, 53)); // false | ||
* isSafeInteger(0.1); // false | ||
* isSafeInteger(Math.PI); // false | ||
* | ||
* isSafeInteger(NaN); // false | ||
* isSafeInteger(Infinity); // false | ||
* isSafeInteger(-Infinity); // false | ||
* isSafeInteger('10'); // false | ||
* isSafeInteger(true); // false | ||
* isSafeInteger(false); // false | ||
* isSafeInteger([1]); // false | ||
*/ | ||
module.exports = function isSafeInteger(value) { | ||
return isInteger(value) && value >= MIN_SAFE_INTEGER && value <= MAX_SAFE_INTEGER; | ||
}; | ||
},{"is-integer-x":8,"max-safe-integer":18}],14:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
var strValue = String.prototype.valueOf; | ||
@@ -410,3 +532,3 @@ var tryStringObject = function tryStringObject(value) { | ||
},{}],12:[function(_dereq_,module,exports){ | ||
},{}],15:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
@@ -440,48 +562,4 @@ | ||
},{}],13:[function(_dereq_,module,exports){ | ||
},{}],16:[function(_dereq_,module,exports){ | ||
/** | ||
* lodash 4.0.1 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> | ||
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
* Available under MIT license <https://lodash.com/license> | ||
*/ | ||
/** Used as references for various `Number` constants. */ | ||
var MAX_SAFE_INTEGER = 9007199254740991; | ||
/** | ||
* Checks if `value` is a valid array-like length. | ||
* | ||
* **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength). | ||
* | ||
* @static | ||
* @memberOf _ | ||
* @category Lang | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`. | ||
* @example | ||
* | ||
* _.isLength(3); | ||
* // => true | ||
* | ||
* _.isLength(Number.MIN_VALUE); | ||
* // => false | ||
* | ||
* _.isLength(Infinity); | ||
* // => false | ||
* | ||
* _.isLength('3'); | ||
* // => false | ||
*/ | ||
function isLength(value) { | ||
return typeof value == 'number' && | ||
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; | ||
} | ||
module.exports = isLength; | ||
},{}],14:[function(_dereq_,module,exports){ | ||
/** | ||
* lodash 3.0.0 (Custom Build) <https://lodash.com/> | ||
@@ -517,7 +595,7 @@ * Build: `lodash modern modularize exports="npm" -o ./` | ||
},{}],15:[function(_dereq_,module,exports){ | ||
},{}],17:[function(_dereq_,module,exports){ | ||
/** | ||
* @file ES6-compliant shim for Math.sign. | ||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-math.sign|20.2.2.29 Math.sign(x)} | ||
* @version 2.0.1 | ||
* @version 2.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -563,7 +641,7 @@ * @copyright Xotic750 | ||
},{"is-nan-x":8,"to-number-x":22}],16:[function(_dereq_,module,exports){ | ||
},{"is-nan-x":10,"to-number-x":24}],18:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
module.exports = 9007199254740991; | ||
},{}],17:[function(_dereq_,module,exports){ | ||
},{}],19:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -599,3 +677,3 @@ * @file Trims and replaces sequences of whitespace characters by a single space. | ||
},{"trim-x":29,"white-space-x":31}],18:[function(_dereq_,module,exports){ | ||
},{"trim-x":31,"white-space-x":33}],20:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -632,3 +710,3 @@ * @file Replace the comments in a string. | ||
},{"is-string":11}],19:[function(_dereq_,module,exports){ | ||
},{"is-string":14}],21:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -672,7 +750,7 @@ * @file ES6-compliant shim for RequireObjectCoercible. | ||
},{"is-nil-x":9}],20:[function(_dereq_,module,exports){ | ||
},{"is-nil-x":11}],22:[function(_dereq_,module,exports){ | ||
/** | ||
* @file ToInteger converts 'argument' to an integral numeric value. | ||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger|7.1.4 ToInteger ( argument )} | ||
* @version 2.0.1 | ||
* @version 2.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -717,7 +795,7 @@ * @copyright Xotic750 | ||
},{"is-finite-x":6,"is-nan-x":8,"math-sign-x":15,"to-number-x":22}],21:[function(_dereq_,module,exports){ | ||
},{"is-finite-x":6,"is-nan-x":10,"math-sign-x":17,"to-number-x":24}],23:[function(_dereq_,module,exports){ | ||
/** | ||
* @file ES6-compliant shim for ToLength. | ||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-tolength|7.1.15 ToLength ( argument )} | ||
* @version 2.0.1 | ||
* @version 2.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -761,6 +839,6 @@ * @copyright Xotic750 | ||
},{"max-safe-integer":16,"to-integer-x":20}],22:[function(_dereq_,module,exports){ | ||
},{"max-safe-integer":18,"to-integer-x":22}],24:[function(_dereq_,module,exports){ | ||
/** | ||
* @file Converts argument to a value of type Number. | ||
* @version 1.0.1 | ||
* @version 1.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -807,3 +885,3 @@ * @copyright Xotic750 | ||
var $toNumber = function toNumber(argument) { | ||
var value = toPrimitive(argument, 'number'); | ||
var value = toPrimitive(argument, Number); | ||
if (typeof value === 'symbol') { | ||
@@ -850,3 +928,3 @@ throw new TypeError('Cannot convert a Symbol value to a number'); | ||
},{"to-primitive-x":24,"trim-x":29}],23:[function(_dereq_,module,exports){ | ||
},{"to-primitive-x":26,"trim-x":31}],25:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -886,3 +964,3 @@ * @file ES6-compliant shim for ToObject. | ||
},{"require-object-coercible-x":19}],24:[function(_dereq_,module,exports){ | ||
},{"require-object-coercible-x":21}],26:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -1011,3 +1089,3 @@ * @file Converts a JavaScript object to a primitive value. | ||
},{"has-symbol-support-x":2,"is-date-object":5,"is-function-x":7,"is-nil-x":9,"is-primitive":10,"is-symbol":12,"require-object-coercible-x":19,"validate.io-undefined":30}],25:[function(_dereq_,module,exports){ | ||
},{"has-symbol-support-x":2,"is-date-object":5,"is-function-x":7,"is-nil-x":11,"is-primitive":12,"is-symbol":15,"require-object-coercible-x":21,"validate.io-undefined":32}],27:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -1053,3 +1131,3 @@ * @file Get an object's ES6 @@toStringTag. | ||
},{"lodash.isnull":14,"validate.io-undefined":30}],26:[function(_dereq_,module,exports){ | ||
},{"lodash.isnull":16,"validate.io-undefined":32}],28:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -1094,3 +1172,3 @@ * @file ES6-compliant shim for ToString. | ||
},{"is-symbol":12}],27:[function(_dereq_,module,exports){ | ||
},{"is-symbol":15}],29:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -1124,3 +1202,3 @@ * @file This method removes whitespace from the left end of a string. | ||
},{"to-string-x":26,"white-space-x":31}],28:[function(_dereq_,module,exports){ | ||
},{"to-string-x":28,"white-space-x":33}],30:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -1154,3 +1232,3 @@ * @file This method removes whitespace from the right end of a string. | ||
},{"to-string-x":26,"white-space-x":31}],29:[function(_dereq_,module,exports){ | ||
},{"to-string-x":28,"white-space-x":33}],31:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -1184,3 +1262,3 @@ * @file This method removes whitespace from the left and right end of a string. | ||
},{"trim-left-x":27,"trim-right-x":28}],30:[function(_dereq_,module,exports){ | ||
},{"trim-left-x":29,"trim-right-x":30}],32:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -1232,3 +1310,3 @@ * | ||
},{}],31:[function(_dereq_,module,exports){ | ||
},{}],33:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -1235,0 +1313,0 @@ * @file List of ECMAScript5 white space characters. |
!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).returnExports=f()}}(function(){return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n||e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)s(r[o]);return s}({1:[function(_dereq_,module,exports){/** | ||
* @file Calculates a fromIndex of a given value for an array. | ||
* @version 2.0.1 | ||
* @version 2.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -9,3 +9,3 @@ * @copyright Xotic750 | ||
*/ | ||
"use strict";var toObject=_dereq_("to-object-x"),toLength=_dereq_("to-length-x"),toInteger=_dereq_("to-integer-x"),isArrayLike=_dereq_("is-array-like-x");module.exports=function calcFromIndex(array,fromIndex){var object=toObject(array);if(!1===isArrayLike(object))return 0;var length=toLength(object.length),index=toInteger(fromIndex);return index>=0?index:Math.max(0,length+index)}},{"is-array-like-x":4,"to-integer-x":20,"to-length-x":21,"to-object-x":23}],2:[function(_dereq_,module,exports){/** | ||
"use strict";var toObject=_dereq_("to-object-x"),toLength=_dereq_("to-length-x"),toInteger=_dereq_("to-integer-x"),isArrayLike=_dereq_("is-array-like-x");module.exports=function calcFromIndex(array,fromIndex){var object=toObject(array);if(!1===isArrayLike(object))return 0;var length=toLength(object.length),index=toInteger(fromIndex);return index>=0?index:Math.max(0,length+index)}},{"is-array-like-x":4,"to-integer-x":22,"to-length-x":23,"to-object-x":25}],2:[function(_dereq_,module,exports){/** | ||
* @file Tests if ES6 Symbol is supported. | ||
@@ -29,3 +29,3 @@ * @version 1.4.1 | ||
* @file Determine if a value is array like. | ||
* @version 1.5.1 | ||
* @version 1.7.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -36,3 +36,3 @@ * @copyright Xotic750 | ||
*/ | ||
"use strict";var isNil=_dereq_("is-nil-x"),isFunction=_dereq_("is-function-x"),isLength=_dereq_("lodash.islength");module.exports=function isArrayLike(value){return!1===isNil(value)&&!1===isFunction(value,!0)&&isLength(value.length)}},{"is-function-x":7,"is-nil-x":9,"lodash.islength":13}],5:[function(_dereq_,module,exports){"use strict";var getDay=Date.prototype.getDay,tryDateObject=function tryDateObject(value){try{return getDay.call(value),!0}catch(e){return!1}},toStr=Object.prototype.toString,hasToStringTag="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;module.exports=function isDateObject(value){return"object"==typeof value&&null!==value&&(hasToStringTag?tryDateObject(value):"[object Date]"===toStr.call(value))}},{}],6:[function(_dereq_,module,exports){/** | ||
"use strict";var isNil=_dereq_("is-nil-x"),isFunction=_dereq_("is-function-x"),isLength=_dereq_("is-length-x");module.exports=function isArrayLike(value){return!1===isNil(value)&&!1===isFunction(value,!0)&&isLength(value.length)}},{"is-function-x":7,"is-length-x":9,"is-nil-x":11}],5:[function(_dereq_,module,exports){"use strict";var getDay=Date.prototype.getDay,tryDateObject=function tryDateObject(value){try{return getDay.call(value),!0}catch(e){return!1}},toStr=Object.prototype.toString,hasToStringTag="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;module.exports=function isDateObject(value){return"object"==typeof value&&null!==value&&(hasToStringTag?tryDateObject(value):"[object Date]"===toStr.call(value))}},{}],6:[function(_dereq_,module,exports){/** | ||
* @file ES6-compliant shim for Number.isFinite. | ||
@@ -46,3 +46,3 @@ * @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-number.isfinite|20.1.2.2 Number.isFinite ( number )} | ||
*/ | ||
"use strict";var numberIsNaN=_dereq_("is-nan-x");module.exports=function isFinite(number){return"number"==typeof number&&!1===numberIsNaN(number)&&number!==1/0&&number!==-1/0}},{"is-nan-x":8}],7:[function(_dereq_,module,exports){/** | ||
"use strict";var numberIsNaN=_dereq_("is-nan-x");module.exports=function isFinite(number){return"number"==typeof number&&!1===numberIsNaN(number)&&number!==1/0&&number!==-1/0}},{"is-nan-x":10}],7:[function(_dereq_,module,exports){/** | ||
* @file Determine whether a given value is a function object. | ||
@@ -55,3 +55,19 @@ * @version 3.1.1 | ||
*/ | ||
"use strict";var fToString=Function.prototype.toString,toStringTag=_dereq_("to-string-tag-x"),hasToStringTag=_dereq_("has-to-string-tag-x"),isPrimitive=_dereq_("is-primitive"),normalise=_dereq_("normalize-space-x"),deComment=_dereq_("replace-comments-x"),hasNativeClass=!0;try{Function('"use strict"; return class My {};')()}catch(ignore){hasNativeClass=!1}var ctrRx=/^class /,isES6ClassFn=function isES6ClassFunc(value){try{return ctrRx.test(normalise(deComment(fToString.call(value)," ")))}catch(ignore){}return!1},tryFuncToString=function funcToString(value,allowClass){try{return(!hasNativeClass||!1!==allowClass||!isES6ClassFn(value))&&(fToString.call(value),!0)}catch(ignore){}return!1};module.exports=function isFunction(value){if(isPrimitive(value))return!1;var allowClass=arguments.length>0&&Boolean(arguments[1]);if(hasToStringTag)return tryFuncToString(value,allowClass);if(hasNativeClass&&!1===allowClass&&isES6ClassFn(value))return!1;var strTag=toStringTag(value);return"[object Function]"===strTag||"[object GeneratorFunction]"===strTag||"[object AsyncFunction]"===strTag}},{"has-to-string-tag-x":3,"is-primitive":10,"normalize-space-x":17,"replace-comments-x":18,"to-string-tag-x":25}],8:[function(_dereq_,module,exports){/** | ||
"use strict";var fToString=Function.prototype.toString,toStringTag=_dereq_("to-string-tag-x"),hasToStringTag=_dereq_("has-to-string-tag-x"),isPrimitive=_dereq_("is-primitive"),normalise=_dereq_("normalize-space-x"),deComment=_dereq_("replace-comments-x"),hasNativeClass=!0;try{Function('"use strict"; return class My {};')()}catch(ignore){hasNativeClass=!1}var ctrRx=/^class /,isES6ClassFn=function isES6ClassFunc(value){try{return ctrRx.test(normalise(deComment(fToString.call(value)," ")))}catch(ignore){}return!1},tryFuncToString=function funcToString(value,allowClass){try{return(!hasNativeClass||!1!==allowClass||!isES6ClassFn(value))&&(fToString.call(value),!0)}catch(ignore){}return!1};module.exports=function isFunction(value){if(isPrimitive(value))return!1;var allowClass=arguments.length>0&&Boolean(arguments[1]);if(hasToStringTag)return tryFuncToString(value,allowClass);if(hasNativeClass&&!1===allowClass&&isES6ClassFn(value))return!1;var strTag=toStringTag(value);return"[object Function]"===strTag||"[object GeneratorFunction]"===strTag||"[object AsyncFunction]"===strTag}},{"has-to-string-tag-x":3,"is-primitive":12,"normalize-space-x":19,"replace-comments-x":20,"to-string-tag-x":27}],8:[function(_dereq_,module,exports){/** | ||
* @file Determine whether the passed value is an integer. | ||
* @version 1.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
* @copyright Xotic750 | ||
* @license {@link <https://opensource.org/licenses/MIT> MIT} | ||
* @module is-integer-x | ||
*/ | ||
"use strict";var numberIsFinite=_dereq_("is-finite-x"),toInteger=_dereq_("to-integer-x");module.exports=function isInteger(value){return numberIsFinite(value)&&toInteger(value)===value}},{"is-finite-x":6,"to-integer-x":22}],9:[function(_dereq_,module,exports){/** | ||
* @file Checks if `value` is a valid array-like length. | ||
* @version 2.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
* @copyright Xotic750 | ||
* @license {@link <https://opensource.org/licenses/MIT> MIT} | ||
* @module is-length-x | ||
*/ | ||
"use strict";var isSafeInteger=_dereq_("is-safe-integer-x");module.exports=function isLength(value){return isSafeInteger(value)&&value>=0}},{"is-safe-integer-x":13}],10:[function(_dereq_,module,exports){/** | ||
* @file ES6-compliant shim for Number.isNaN - the global isNaN returns false positives. | ||
@@ -64,3 +80,3 @@ * @version 1.0.1 | ||
*/ | ||
"use strict";module.exports=function isNaN(value){return value!==value}},{}],9:[function(_dereq_,module,exports){/** | ||
"use strict";module.exports=function isNaN(value){return value!==value}},{}],11:[function(_dereq_,module,exports){/** | ||
* @file Checks if `value` is `null` or `undefined`. | ||
@@ -73,6 +89,14 @@ * @version 1.4.1 | ||
*/ | ||
"use strict";var isUndefined=_dereq_("validate.io-undefined"),isNull=_dereq_("lodash.isnull");module.exports=function isNil(value){return isNull(value)||isUndefined(value)}},{"lodash.isnull":14,"validate.io-undefined":30}],10:[function(_dereq_,module,exports){"use strict";module.exports=function isPrimitive(value){return null==value||"function"!=typeof value&&"object"!=typeof value}},{}],11:[function(_dereq_,module,exports){"use strict";var strValue=String.prototype.valueOf,tryStringObject=function tryStringObject(value){try{return strValue.call(value),!0}catch(e){return!1}},toStr=Object.prototype.toString,hasToStringTag="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;module.exports=function isString(value){return"string"==typeof value||"object"==typeof value&&(hasToStringTag?tryStringObject(value):"[object String]"===toStr.call(value))}},{}],12:[function(_dereq_,module,exports){"use strict";var toStr=Object.prototype.toString;if("function"==typeof Symbol&&"symbol"==typeof Symbol()){var symToStr=Symbol.prototype.toString,symStringRegex=/^Symbol\(.*\)$/,isSymbolObject=function isSymbolObject(value){return"symbol"==typeof value.valueOf()&&symStringRegex.test(symToStr.call(value))};module.exports=function isSymbol(value){if("symbol"==typeof value)return!0;if("[object Symbol]"!==toStr.call(value))return!1;try{return isSymbolObject(value)}catch(e){return!1}}}else module.exports=function isSymbol(value){return!1}},{}],13:[function(_dereq_,module,exports){var MAX_SAFE_INTEGER=9007199254740991;module.exports=function isLength(value){return"number"==typeof value&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER}},{}],14:[function(_dereq_,module,exports){module.exports=function isNull(value){return null===value}},{}],15:[function(_dereq_,module,exports){/** | ||
"use strict";var isUndefined=_dereq_("validate.io-undefined"),isNull=_dereq_("lodash.isnull");module.exports=function isNil(value){return isNull(value)||isUndefined(value)}},{"lodash.isnull":16,"validate.io-undefined":32}],12:[function(_dereq_,module,exports){"use strict";module.exports=function isPrimitive(value){return null==value||"function"!=typeof value&&"object"!=typeof value}},{}],13:[function(_dereq_,module,exports){/** | ||
* @file Determine whether the passed value is a safe integer. | ||
* @version 1.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
* @copyright Xotic750 | ||
* @license {@link <https://opensource.org/licenses/MIT> MIT} | ||
* @module is-safe-integer-x | ||
*/ | ||
"use strict";var isInteger=_dereq_("is-integer-x"),MAX_SAFE_INTEGER=_dereq_("max-safe-integer"),MIN_SAFE_INTEGER=-MAX_SAFE_INTEGER;module.exports=function isSafeInteger(value){return isInteger(value)&&value>=MIN_SAFE_INTEGER&&value<=MAX_SAFE_INTEGER}},{"is-integer-x":8,"max-safe-integer":18}],14:[function(_dereq_,module,exports){"use strict";var strValue=String.prototype.valueOf,tryStringObject=function tryStringObject(value){try{return strValue.call(value),!0}catch(e){return!1}},toStr=Object.prototype.toString,hasToStringTag="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;module.exports=function isString(value){return"string"==typeof value||"object"==typeof value&&(hasToStringTag?tryStringObject(value):"[object String]"===toStr.call(value))}},{}],15:[function(_dereq_,module,exports){"use strict";var toStr=Object.prototype.toString;if("function"==typeof Symbol&&"symbol"==typeof Symbol()){var symToStr=Symbol.prototype.toString,symStringRegex=/^Symbol\(.*\)$/,isSymbolObject=function isSymbolObject(value){return"symbol"==typeof value.valueOf()&&symStringRegex.test(symToStr.call(value))};module.exports=function isSymbol(value){if("symbol"==typeof value)return!0;if("[object Symbol]"!==toStr.call(value))return!1;try{return isSymbolObject(value)}catch(e){return!1}}}else module.exports=function isSymbol(value){return!1}},{}],16:[function(_dereq_,module,exports){module.exports=function isNull(value){return null===value}},{}],17:[function(_dereq_,module,exports){/** | ||
* @file ES6-compliant shim for Math.sign. | ||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-math.sign|20.2.2.29 Math.sign(x)} | ||
* @version 2.0.1 | ||
* @version 2.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -83,3 +107,3 @@ * @copyright Xotic750 | ||
*/ | ||
"use strict";var toNumber=_dereq_("to-number-x"),numberIsNaN=_dereq_("is-nan-x");module.exports=function sign(x){var n=toNumber(x);return 0===n||numberIsNaN(n)?n:n>0?1:-1}},{"is-nan-x":8,"to-number-x":22}],16:[function(_dereq_,module,exports){"use strict";module.exports=9007199254740991},{}],17:[function(_dereq_,module,exports){/** | ||
"use strict";var toNumber=_dereq_("to-number-x"),numberIsNaN=_dereq_("is-nan-x");module.exports=function sign(x){var n=toNumber(x);return 0===n||numberIsNaN(n)?n:n>0?1:-1}},{"is-nan-x":10,"to-number-x":24}],18:[function(_dereq_,module,exports){"use strict";module.exports=9007199254740991},{}],19:[function(_dereq_,module,exports){/** | ||
* @file Trims and replaces sequences of whitespace characters by a single space. | ||
@@ -92,3 +116,3 @@ * @version 1.3.3 | ||
*/ | ||
"use strict";var trim=_dereq_("trim-x"),reNormalize=new RegExp("["+_dereq_("white-space-x").string+"]+","g");module.exports=function normalizeSpace(string){return trim(string).replace(reNormalize," ")}},{"trim-x":29,"white-space-x":31}],18:[function(_dereq_,module,exports){/** | ||
"use strict";var trim=_dereq_("trim-x"),reNormalize=new RegExp("["+_dereq_("white-space-x").string+"]+","g");module.exports=function normalizeSpace(string){return trim(string).replace(reNormalize," ")}},{"trim-x":31,"white-space-x":33}],20:[function(_dereq_,module,exports){/** | ||
* @file Replace the comments in a string. | ||
@@ -101,3 +125,3 @@ * @version 1.0.3 | ||
*/ | ||
"use strict";var isString=_dereq_("is-string"),STRIP_COMMENTS=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;module.exports=function replaceComments(string){var replacement=arguments.length>1&&isString(arguments[1])?arguments[1]:"";return isString(string)?string.replace(STRIP_COMMENTS,replacement):""}},{"is-string":11}],19:[function(_dereq_,module,exports){/** | ||
"use strict";var isString=_dereq_("is-string"),STRIP_COMMENTS=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;module.exports=function replaceComments(string){var replacement=arguments.length>1&&isString(arguments[1])?arguments[1]:"";return isString(string)?string.replace(STRIP_COMMENTS,replacement):""}},{"is-string":14}],21:[function(_dereq_,module,exports){/** | ||
* @file ES6-compliant shim for RequireObjectCoercible. | ||
@@ -111,6 +135,6 @@ * @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-requireobjectcoercible|7.2.1 RequireObjectCoercible ( argument )} | ||
*/ | ||
"use strict";var isNil=_dereq_("is-nil-x");module.exports=function RequireObjectCoercible(value){if(isNil(value))throw new TypeError("Cannot call method on "+value);return value}},{"is-nil-x":9}],20:[function(_dereq_,module,exports){/** | ||
"use strict";var isNil=_dereq_("is-nil-x");module.exports=function RequireObjectCoercible(value){if(isNil(value))throw new TypeError("Cannot call method on "+value);return value}},{"is-nil-x":11}],22:[function(_dereq_,module,exports){/** | ||
* @file ToInteger converts 'argument' to an integral numeric value. | ||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger|7.1.4 ToInteger ( argument )} | ||
* @version 2.0.1 | ||
* @version 2.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -121,6 +145,6 @@ * @copyright Xotic750 | ||
*/ | ||
"use strict";var toNumber=_dereq_("to-number-x"),numberIsNaN=_dereq_("is-nan-x"),numberIsFinite=_dereq_("is-finite-x"),mathSign=_dereq_("math-sign-x");module.exports=function toInteger(value){var number=toNumber(value);return numberIsNaN(number)?0:0===number||!1===numberIsFinite(number)?number:mathSign(number)*Math.floor(Math.abs(number))}},{"is-finite-x":6,"is-nan-x":8,"math-sign-x":15,"to-number-x":22}],21:[function(_dereq_,module,exports){/** | ||
"use strict";var toNumber=_dereq_("to-number-x"),numberIsNaN=_dereq_("is-nan-x"),numberIsFinite=_dereq_("is-finite-x"),mathSign=_dereq_("math-sign-x");module.exports=function toInteger(value){var number=toNumber(value);return numberIsNaN(number)?0:0===number||!1===numberIsFinite(number)?number:mathSign(number)*Math.floor(Math.abs(number))}},{"is-finite-x":6,"is-nan-x":10,"math-sign-x":17,"to-number-x":24}],23:[function(_dereq_,module,exports){/** | ||
* @file ES6-compliant shim for ToLength. | ||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-tolength|7.1.15 ToLength ( argument )} | ||
* @version 2.0.1 | ||
* @version 2.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -131,5 +155,5 @@ * @copyright Xotic750 | ||
*/ | ||
"use strict";var toInteger=_dereq_("to-integer-x"),MAX_SAFE_INTEGER=_dereq_("max-safe-integer");module.exports=function toLength(value){var len=toInteger(value);return len<=0?0:len>MAX_SAFE_INTEGER?MAX_SAFE_INTEGER:len}},{"max-safe-integer":16,"to-integer-x":20}],22:[function(_dereq_,module,exports){/** | ||
"use strict";var toInteger=_dereq_("to-integer-x"),MAX_SAFE_INTEGER=_dereq_("max-safe-integer");module.exports=function toLength(value){var len=toInteger(value);return len<=0?0:len>MAX_SAFE_INTEGER?MAX_SAFE_INTEGER:len}},{"max-safe-integer":18,"to-integer-x":22}],24:[function(_dereq_,module,exports){/** | ||
* @file Converts argument to a value of type Number. | ||
* @version 1.0.1 | ||
* @version 1.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -140,3 +164,3 @@ * @copyright Xotic750 | ||
*/ | ||
"use strict";var toPrimitive=_dereq_("to-primitive-x"),trim=_dereq_("trim-x"),pStrSlice=String.prototype.slice,binaryRegex=/^0b[01]+$/i,test=binaryRegex.test,isBinary=function _isBinary(value){return test.call(binaryRegex,value)},octalRegex=/^0o[0-7]+$/i,isOctal=function _isOctal(value){return test.call(octalRegex,value)},nonWS=["\x85","\u200b","\ufffe"].join(""),nonWSregex=new RegExp("["+nonWS+"]","g"),hasNonWS=function _hasNonWS(value){return test.call(nonWSregex,value)},invalidHexLiteral=/^[-+]0x[0-9a-f]+$/i,isInvalidHexLiteral=function _isInvalidHexLiteral(value){return test.call(invalidHexLiteral,value)},$toNumber=function toNumber(argument){var value=toPrimitive(argument,"number");if("symbol"==typeof value)throw new TypeError("Cannot convert a Symbol value to a number");if("string"==typeof value){if(isBinary(value))return $toNumber(parseInt(pStrSlice.call(value,2),2));if(isOctal(value))return $toNumber(parseInt(pStrSlice.call(value,2),8));if(hasNonWS(value)||isInvalidHexLiteral(value))return NaN;var trimmed=trim(value);if(trimmed!==value)return $toNumber(trimmed)}return Number(value)};module.exports=$toNumber},{"to-primitive-x":24,"trim-x":29}],23:[function(_dereq_,module,exports){/** | ||
"use strict";var toPrimitive=_dereq_("to-primitive-x"),trim=_dereq_("trim-x"),pStrSlice=String.prototype.slice,binaryRegex=/^0b[01]+$/i,test=binaryRegex.test,isBinary=function _isBinary(value){return test.call(binaryRegex,value)},octalRegex=/^0o[0-7]+$/i,isOctal=function _isOctal(value){return test.call(octalRegex,value)},nonWS=["\x85","\u200b","\ufffe"].join(""),nonWSregex=new RegExp("["+nonWS+"]","g"),hasNonWS=function _hasNonWS(value){return test.call(nonWSregex,value)},invalidHexLiteral=/^[-+]0x[0-9a-f]+$/i,isInvalidHexLiteral=function _isInvalidHexLiteral(value){return test.call(invalidHexLiteral,value)},$toNumber=function toNumber(argument){var value=toPrimitive(argument,Number);if("symbol"==typeof value)throw new TypeError("Cannot convert a Symbol value to a number");if("string"==typeof value){if(isBinary(value))return $toNumber(parseInt(pStrSlice.call(value,2),2));if(isOctal(value))return $toNumber(parseInt(pStrSlice.call(value,2),8));if(hasNonWS(value)||isInvalidHexLiteral(value))return NaN;var trimmed=trim(value);if(trimmed!==value)return $toNumber(trimmed)}return Number(value)};module.exports=$toNumber},{"to-primitive-x":26,"trim-x":31}],25:[function(_dereq_,module,exports){/** | ||
* @file ES6-compliant shim for ToObject. | ||
@@ -150,3 +174,3 @@ * @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-toobject|7.1.13 ToObject ( argument )} | ||
*/ | ||
"use strict";var requireObjectCoercible=_dereq_("require-object-coercible-x");module.exports=function toObject(value){return Object(requireObjectCoercible(value))}},{"require-object-coercible-x":19}],24:[function(_dereq_,module,exports){/** | ||
"use strict";var requireObjectCoercible=_dereq_("require-object-coercible-x");module.exports=function toObject(value){return Object(requireObjectCoercible(value))}},{"require-object-coercible-x":21}],26:[function(_dereq_,module,exports){/** | ||
* @file Converts a JavaScript object to a primitive value. | ||
@@ -159,3 +183,3 @@ * @version 1.0.1 | ||
*/ | ||
"use strict";var hasSymbols=_dereq_("has-symbol-support-x"),isPrimitive=_dereq_("is-primitive"),isDate=_dereq_("is-date-object"),isSymbol=_dereq_("is-symbol"),isFunction=_dereq_("is-function-x"),requireObjectCoercible=_dereq_("require-object-coercible-x"),isNil=_dereq_("is-nil-x"),isUndefined=_dereq_("validate.io-undefined"),symToPrimitive=hasSymbols&&Symbol.toPrimitive,symValueOf=hasSymbols&&Symbol.prototype.valueOf,toStringOrder=["toString","valueOf"],toNumberOrder=["valueOf","toString"],ordinaryToPrimitive=function _ordinaryToPrimitive(O,hint){if(requireObjectCoercible(O),"string"!=typeof hint||"number"!==hint&&"string"!==hint)throw new TypeError('hint must be "string" or "number"');for(var method,result,methodNames="string"===hint?toStringOrder:toNumberOrder,i=0;i<2;i+=1)if(method=O[methodNames[i]],isFunction(method)&&(result=method.call(O),isPrimitive(result)))return result;throw new TypeError("No default value")},getMethod=function _getMethod(O,P){var func=O[P];if(!1===isNil(func)){if(!1===isFunction(func))throw new TypeError(func+" returned for property "+P+" of object "+O+" is not a function");return func}};module.exports=function toPrimitive(input,preferredType){if(isPrimitive(input))return input;var hint="default";arguments.length>1&&(preferredType===String?hint="string":preferredType===Number&&(hint="number"));var exoticToPrim;if(hasSymbols&&(symToPrimitive?exoticToPrim=getMethod(input,symToPrimitive):isSymbol(input)&&(exoticToPrim=symValueOf)),!1===isUndefined(exoticToPrim)){var result=exoticToPrim.call(input,hint);if(isPrimitive(result))return result;throw new TypeError("unable to convert exotic object to primitive")}return"default"===hint&&(isDate(input)||isSymbol(input))&&(hint="string"),ordinaryToPrimitive(input,"default"===hint?"number":hint)}},{"has-symbol-support-x":2,"is-date-object":5,"is-function-x":7,"is-nil-x":9,"is-primitive":10,"is-symbol":12,"require-object-coercible-x":19,"validate.io-undefined":30}],25:[function(_dereq_,module,exports){/** | ||
"use strict";var hasSymbols=_dereq_("has-symbol-support-x"),isPrimitive=_dereq_("is-primitive"),isDate=_dereq_("is-date-object"),isSymbol=_dereq_("is-symbol"),isFunction=_dereq_("is-function-x"),requireObjectCoercible=_dereq_("require-object-coercible-x"),isNil=_dereq_("is-nil-x"),isUndefined=_dereq_("validate.io-undefined"),symToPrimitive=hasSymbols&&Symbol.toPrimitive,symValueOf=hasSymbols&&Symbol.prototype.valueOf,toStringOrder=["toString","valueOf"],toNumberOrder=["valueOf","toString"],ordinaryToPrimitive=function _ordinaryToPrimitive(O,hint){if(requireObjectCoercible(O),"string"!=typeof hint||"number"!==hint&&"string"!==hint)throw new TypeError('hint must be "string" or "number"');for(var method,result,methodNames="string"===hint?toStringOrder:toNumberOrder,i=0;i<2;i+=1)if(method=O[methodNames[i]],isFunction(method)&&(result=method.call(O),isPrimitive(result)))return result;throw new TypeError("No default value")},getMethod=function _getMethod(O,P){var func=O[P];if(!1===isNil(func)){if(!1===isFunction(func))throw new TypeError(func+" returned for property "+P+" of object "+O+" is not a function");return func}};module.exports=function toPrimitive(input,preferredType){if(isPrimitive(input))return input;var hint="default";arguments.length>1&&(preferredType===String?hint="string":preferredType===Number&&(hint="number"));var exoticToPrim;if(hasSymbols&&(symToPrimitive?exoticToPrim=getMethod(input,symToPrimitive):isSymbol(input)&&(exoticToPrim=symValueOf)),!1===isUndefined(exoticToPrim)){var result=exoticToPrim.call(input,hint);if(isPrimitive(result))return result;throw new TypeError("unable to convert exotic object to primitive")}return"default"===hint&&(isDate(input)||isSymbol(input))&&(hint="string"),ordinaryToPrimitive(input,"default"===hint?"number":hint)}},{"has-symbol-support-x":2,"is-date-object":5,"is-function-x":7,"is-nil-x":11,"is-primitive":12,"is-symbol":15,"require-object-coercible-x":21,"validate.io-undefined":32}],27:[function(_dereq_,module,exports){/** | ||
* @file Get an object's ES6 @@toStringTag. | ||
@@ -169,3 +193,3 @@ * @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring|19.1.3.6 Object.prototype.toString ( )} | ||
*/ | ||
"use strict";var isNull=_dereq_("lodash.isnull"),isUndefined=_dereq_("validate.io-undefined"),toStr=Object.prototype.toString;module.exports=function toStringTag(value){return isNull(value)?"[object Null]":isUndefined(value)?"[object Undefined]":toStr.call(value)}},{"lodash.isnull":14,"validate.io-undefined":30}],26:[function(_dereq_,module,exports){/** | ||
"use strict";var isNull=_dereq_("lodash.isnull"),isUndefined=_dereq_("validate.io-undefined"),toStr=Object.prototype.toString;module.exports=function toStringTag(value){return isNull(value)?"[object Null]":isUndefined(value)?"[object Undefined]":toStr.call(value)}},{"lodash.isnull":16,"validate.io-undefined":32}],28:[function(_dereq_,module,exports){/** | ||
* @file ES6-compliant shim for ToString. | ||
@@ -179,3 +203,3 @@ * @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-tostring|7.1.12 ToString ( argument )} | ||
*/ | ||
"use strict";var isSymbol=_dereq_("is-symbol");module.exports=function ToString(value){if(isSymbol(value))throw new TypeError("Cannot convert a Symbol value to a string");return String(value)}},{"is-symbol":12}],27:[function(_dereq_,module,exports){/** | ||
"use strict";var isSymbol=_dereq_("is-symbol");module.exports=function ToString(value){if(isSymbol(value))throw new TypeError("Cannot convert a Symbol value to a string");return String(value)}},{"is-symbol":15}],29:[function(_dereq_,module,exports){/** | ||
* @file This method removes whitespace from the left end of a string. | ||
@@ -188,3 +212,3 @@ * @version 1.3.5 | ||
*/ | ||
"use strict";var $toString=_dereq_("to-string-x"),reLeft=new RegExp("^["+_dereq_("white-space-x").string+"]+");module.exports=function trimLeft(string){return $toString(string).replace(reLeft,"")}},{"to-string-x":26,"white-space-x":31}],28:[function(_dereq_,module,exports){/** | ||
"use strict";var $toString=_dereq_("to-string-x"),reLeft=new RegExp("^["+_dereq_("white-space-x").string+"]+");module.exports=function trimLeft(string){return $toString(string).replace(reLeft,"")}},{"to-string-x":28,"white-space-x":33}],30:[function(_dereq_,module,exports){/** | ||
* @file This method removes whitespace from the right end of a string. | ||
@@ -197,3 +221,3 @@ * @version 1.3.3 | ||
*/ | ||
"use strict";var $toString=_dereq_("to-string-x"),reRight=new RegExp("["+_dereq_("white-space-x").string+"]+$");module.exports=function trimRight(string){return $toString(string).replace(reRight,"")}},{"to-string-x":26,"white-space-x":31}],29:[function(_dereq_,module,exports){/** | ||
"use strict";var $toString=_dereq_("to-string-x"),reRight=new RegExp("["+_dereq_("white-space-x").string+"]+$");module.exports=function trimRight(string){return $toString(string).replace(reRight,"")}},{"to-string-x":28,"white-space-x":33}],31:[function(_dereq_,module,exports){/** | ||
* @file This method removes whitespace from the left and right end of a string. | ||
@@ -206,3 +230,3 @@ * @version 1.0.3 | ||
*/ | ||
"use strict";var trimLeft=_dereq_("trim-left-x"),trimRight=_dereq_("trim-right-x");module.exports=function trim(string){return trimLeft(trimRight(string))}},{"trim-left-x":27,"trim-right-x":28}],30:[function(_dereq_,module,exports){"use strict";module.exports=function isUndefined(value){return void 0===value}},{}],31:[function(_dereq_,module,exports){/** | ||
"use strict";var trimLeft=_dereq_("trim-left-x"),trimRight=_dereq_("trim-right-x");module.exports=function trim(string){return trimLeft(trimRight(string))}},{"trim-left-x":29,"trim-right-x":30}],32:[function(_dereq_,module,exports){"use strict";module.exports=function isUndefined(value){return void 0===value}},{}],33:[function(_dereq_,module,exports){/** | ||
* @file List of ECMAScript5 white space characters. | ||
@@ -209,0 +233,0 @@ * @version 2.0.3 |
{ | ||
"name": "calculate-from-index-x", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "Calculates a fromIndex of a given value for an array.", | ||
@@ -32,5 +32,5 @@ "homepage": "https://github.com/Xotic750/calculate-from-index-x", | ||
"dependencies": { | ||
"is-array-like-x": "^1.5.1", | ||
"to-integer-x": "^2.0.1", | ||
"to-length-x": "^2.0.1", | ||
"is-array-like-x": "^1.7.0", | ||
"to-integer-x": "^2.1.0", | ||
"to-length-x": "^2.1.0", | ||
"to-object-x": "^1.4.1" | ||
@@ -37,0 +37,0 @@ }, |
@@ -26,3 +26,3 @@ <a href="https://travis-ci.org/Xotic750/calculate-from-index-x" | ||
**Version**: 2.0.1 | ||
**Version**: 2.1.0 | ||
**Author**: Xotic750 <Xotic750@gmail.com> | ||
@@ -29,0 +29,0 @@ **License**: [MIT](<https://opensource.org/licenses/MIT>) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89065
1649
Updatedis-array-like-x@^1.7.0
Updatedto-integer-x@^2.1.0
Updatedto-length-x@^2.1.0