Socket
Socket
Sign inDemoInstall

is-index-x

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-index-x - npm Package Compare versions

Comparing version 2.0.10 to 2.0.11

216

dist/is-index-x.js

@@ -5,9 +5,9 @@ /*!

"copywrite": "Copyright (c) 2017",
"date": "2019-07-22T12:55:10.897Z",
"date": "2019-07-24T00:36:23.298Z",
"describe": "",
"description": "Determine whether the passed value is a zero based index.",
"file": "is-index-x.js",
"hash": "fee9a9efbdda130ad0b0",
"hash": "8a4e6d60d9b0f74ddfeb",
"license": "MIT",
"version": "2.0.10"
"version": "2.0.11"
}

@@ -866,7 +866,6 @@ */

var RegExpCtr = /none/.constructor;
var reLeft2016 = new RegExpCtr("^[".concat(string2016, "]+"));
var reLeft = new RegExpCtr("^[".concat(white_space_x_esm, "]+"));
var replace = EMPTY_STRING.replace;
/**
* This method removes whitespace from the left end of a string. (ES2016).
* This method removes whitespace from the start of a string. (ES2019).
*

@@ -878,18 +877,7 @@ * @param {string} [string] - The string to trim the left end whitespace from.

function trimLeft2016(string) {
return replace.call(require_coercible_to_string_x_esm(string), reLeft2016, EMPTY_STRING);
}
/**
* This method removes whitespace from the left end of a string. (ES2018).
*
* @param {string} [string] - The string to trim the left end whitespace from.
* @throws {TypeError} If string is null or undefined or not coercible.
* @returns {string} The left trimmed string.
*/
var trim_left_x_esm_trimLeft2018 = function trimLeft2018(string) {
var trim_left_x_esm_trimStart = function trimStart(string) {
return replace.call(require_coercible_to_string_x_esm(string), reLeft, EMPTY_STRING);
};
/* harmony default export */ var trim_left_x_esm = (trim_left_x_esm_trimLeft2018);
/* harmony default export */ var trim_left_x_esm = (trim_left_x_esm_trimStart);

@@ -902,7 +890,6 @@

var trim_right_x_esm_RegExpCtr = /none/.constructor;
var reRight2016 = new trim_right_x_esm_RegExpCtr("[".concat(string2016, "]+$"));
var reRight2018 = new trim_right_x_esm_RegExpCtr("[".concat(white_space_x_esm, "]+$"));
var trim_right_x_esm_replace = trim_right_x_esm_EMPTY_STRING.replace;
/**
* This method removes whitespace from the right end of a string. (ES2016).
* This method removes whitespace from the end of a string. (ES2019).
*

@@ -914,18 +901,7 @@ * @param {string} [string] - The string to trim the right end whitespace from.

function trimRight2016(string) {
return trim_right_x_esm_replace.call(require_coercible_to_string_x_esm(string), reRight2016, trim_right_x_esm_EMPTY_STRING);
}
/**
* This method removes whitespace from the right end of a string. (ES2018).
*
* @param {string} [string] - The string to trim the right end whitespace from.
* @throws {TypeError} If string is null or undefined or not coercible.
* @returns {string} The right trimmed string.
*/
var trim_right_x_esm_trimRight2018 = function trimRight2018(string) {
var trim_right_x_esm_trimEnd = function trimEnd(string) {
return trim_right_x_esm_replace.call(require_coercible_to_string_x_esm(string), reRight2018, trim_right_x_esm_EMPTY_STRING);
};
/* harmony default export */ var trim_right_x_esm = (trim_right_x_esm_trimRight2018);
/* harmony default export */ var trim_right_x_esm = (trim_right_x_esm_trimEnd);

@@ -937,4 +913,4 @@

/**
* This method removes whitespace from the left and right end of a string.
* (ES2016).
* This method removes whitespace from the start and end of a string.
* (ES2019).
*

@@ -946,19 +922,7 @@ * @param {string} [string] - The string to trim the whitespace from.

function trim2016(string) {
return trimLeft2016(trimRight2016(string));
}
/**
* This method removes whitespace from the left and right end of a string.
* (ES2018).
*
* @param {string} [string] - The string to trim the whitespace from.
* @throws {TypeError} If string is null or undefined or not coercible.
* @returns {string} The trimmed string.
*/
var trim_x_esm_trim2018 = function trim2018(string) {
var trim_x_esm_trim = function trim(string) {
return trim_left_x_esm(trim_right_x_esm(string));
};
/* harmony default export */ var trim_x_esm = (trim_x_esm_trim2018);
/* harmony default export */ var trim_x_esm = (trim_x_esm_trim);

@@ -971,3 +935,2 @@

var normalize_space_x_esm_RegExpCtr = /none/.constructor;
var reNormalize2016 = new normalize_space_x_esm_RegExpCtr("[".concat(string2016, "]+"), 'g');
var reNormalize2018 = new normalize_space_x_esm_RegExpCtr("[".concat(white_space_x_esm, "]+"), 'g');

@@ -978,26 +941,13 @@ var normalize_space_x_esm_replace = SPACE.replace;

* replaces sequences of whitespace characters by a single space,
* and returns the resulting string. (ES2016).
* and returns the resulting string. (ES2019).
*
* @param {string} [string] - The string to be normalized.
* @throws {TypeError} If string is null or undefined or not coercible.
* @returns {string} The normalized string.
*/
function normalizeSpace2016(string) {
return normalize_space_x_esm_replace.call(trim2016(string), reNormalize2016, SPACE);
}
/**
* This method strips leading and trailing white-space from a string,
* replaces sequences of whitespace characters by a single space,
* and returns the resulting string. (ES2018).
*
* @param {string} [string] - The string to be normalized.
* @throws {TypeError} If string is null or undefined or not coercible.
*/
var normalize_space_x_esm_normalizeSpace2018 = function normalizeSpace2018(string) {
var normalize_space_x_esm_normalizeSpace = function normalizeSpace(string) {
return normalize_space_x_esm_replace.call(trim_x_esm(string), reNormalize2018, SPACE);
};
/* harmony default export */ var normalize_space_x_esm = (normalize_space_x_esm_normalizeSpace2018);
/* harmony default export */ var normalize_space_x_esm = (normalize_space_x_esm_normalizeSpace);

@@ -1303,3 +1253,3 @@

* This method parses a string argument and returns an integer of the specified
* radix (the base in mathematical numeral systems). (ES2016).
* radix (the base in mathematical numeral systems). (ES2019).
*

@@ -1320,25 +1270,3 @@ * @param {string} [string] - The value to parse. If the string argument is not a

function parseInt2016(string, radix) {
var str = trimLeft2016(to_string_x_esm(string));
return nativeParseInt(str, castNumber(radix) || (parse_int_x_esm_test.call(hexRegex, str) ? 16 : 10));
}
/**
* This method parses a string argument and returns an integer of the specified
* radix (the base in mathematical numeral systems). (ES2018).
*
* @param {string} [string] - The value to parse. If the string argument is not a
* string, then it is converted to a string (using the ToString abstract
* operation). Leading whitespace in the string argument is ignored.
* @param {number} [radix] - An integer between 2 and 36 that represents the radix
* (the base in mathematical numeral systems) of the above mentioned string.
* Specify 10 for the decimal numeral system commonly used by humans. Always
* specify this parameter to eliminate reader confusion and to guarantee
* predictable behavior. Different implementations produce different results
* when a radix is not specified, usually defaulting the value to 10.
* @throws {TypeError} If target is a Symbol or is not coercible.
* @returns {number} An integer number parsed from the given string. If the first
* character cannot be converted to a number, NaN is returned.
*/
var parse_int_x_esm_parseInt2018 = function parseInt2018(string, radix) {
var parse_int_x_esm_$parseInt = function $parseInt(string, radix) {
var str = trim_left_x_esm(to_string_x_esm(string));

@@ -1353,3 +1281,3 @@

/* harmony default export */ var parse_int_x_esm = (parse_int_x_esm_parseInt2018);
/* harmony default export */ var parse_int_x_esm = (parse_int_x_esm_$parseInt);

@@ -1387,8 +1315,2 @@

var nonWSregex2016 = new RegExpConstructor("[\x85\u200B\uFFFE]", 'g');
var hasNonWS2016 = function _hasNonWS(value) {
return to_number_x_esm_test.call(nonWSregex2016, value);
};
var nonWSregex2018 = new RegExpConstructor("[\x85\u180E\u200B\uFFFE]", 'g');

@@ -1406,3 +1328,3 @@

/**
* This method converts argument to a value of type Number. (ES2016).
* This method converts argument to a value of type Number. (ES2018).
*

@@ -1415,40 +1337,3 @@ * @param {*} [argument] - The argument to convert to a number.

function toNumber2016(argument) {
var value = to_primitive_x_esm(argument, Number);
if (is_symbol_default()(value)) {
throw new TypeError(to_number_x_esm_ERROR_MESSAGE);
}
if (typeof value === 'string') {
if (isBinary(value)) {
return toNumber2016(parseInt2016(pStrSlice.call(value, testCharsCount), binaryRadix));
}
if (isOctal(value)) {
return toNumber2016(parseInt2016(pStrSlice.call(value, testCharsCount), octalRadix));
}
if (hasNonWS2016(value) || isInvalidHexLiteral(value)) {
return nan_x_esm;
}
var trimmed = trim2016(value);
if (trimmed !== value) {
return toNumber2016(trimmed);
}
}
return to_number_x_esm_castNumber(value);
}
/**
* This method converts argument to a value of type Number. (ES2018).
*
* @param {*} [argument] - The argument to convert to a number.
* @throws {TypeError} - If argument is a Symbol or not coercible.
* @returns {*} The argument converted to a number.
*/
var to_number_x_esm_toNumber2018 = function toNumber2018(argument) {
var to_number_x_esm_toNumber = function toNumber(argument) {
var value = to_primitive_x_esm(argument, to_number_x_esm_castNumber);

@@ -1462,7 +1347,7 @@

if (isBinary(value)) {
return toNumber2018(parse_int_x_esm(pStrSlice.call(value, testCharsCount), binaryRadix));
return toNumber(parse_int_x_esm(pStrSlice.call(value, testCharsCount), binaryRadix));
}
if (isOctal(value)) {
return toNumber2018(parse_int_x_esm(pStrSlice.call(value, testCharsCount), octalRadix));
return toNumber(parse_int_x_esm(pStrSlice.call(value, testCharsCount), octalRadix));
}

@@ -1477,3 +1362,3 @@

if (trimmed !== value) {
return toNumber2018(trimmed);
return toNumber(trimmed);
}

@@ -1485,3 +1370,3 @@ }

/* harmony default export */ var to_number_x_esm = (to_number_x_esm_toNumber2018);
/* harmony default export */ var to_number_x_esm = (to_number_x_esm_toNumber);

@@ -1537,3 +1422,3 @@

* This method returns the sign of a number, indicating whether the number is positive,
* negative or zero. (ES2016).
* negative or zero. (ES2019).
*

@@ -1546,22 +1431,3 @@ * @param {*} x - A number.

function sign2016(x) {
var n = toNumber2016(x);
if (n === 0 || is_nan_x_esm(n)) {
return n;
}
return n > 0 ? 1 : -1;
}
/**
* This method returns the sign of a number, indicating whether the number is positive,
* negative or zero. (ES2018).
*
* @param {*} x - A number.
* @returns {number} A number representing the sign of the given argument. If the argument
* is a positive number, negative number, positive zero or negative zero, the function will
* return 1, -1, 0 or -0 respectively. Otherwise, NaN is returned.
*/
var math_sign_x_esm_sign2018 = function sign2018(x) {
var math_sign_x_esm_sign = function sign(x) {
var n = to_number_x_esm(x);

@@ -1576,3 +1442,3 @@

/* harmony default export */ var math_sign_x_esm = (math_sign_x_esm_sign2018);
/* harmony default export */ var math_sign_x_esm = (math_sign_x_esm_sign);

@@ -1588,3 +1454,3 @@

/**
* Converts `value` to an integer. (ES2016).
* Converts `value` to an integer. (ES2019).
*

@@ -1595,23 +1461,3 @@ * @param {*} value - The value to convert.

function toInteger2016(value) {
var number = toNumber2016(value);
if (is_nan_x_esm(number)) {
return 0;
}
if (number === 0 || is_finite_x_esm(number) === false) {
return number;
}
return sign2016(number) * floor(abs(number));
}
/**
* Converts `value` to an integer. (ES2018).
*
* @param {*} value - The value to convert.
* @returns {number} Returns the converted integer.
*/
var to_integer_x_esm_toInteger2018 = function toInteger2018(value) {
var to_integer_x_esm_toInteger = function toInteger(value) {
var number = to_number_x_esm(value);

@@ -1630,3 +1476,3 @@

/* harmony default export */ var to_integer_x_esm = (to_integer_x_esm_toInteger2018);
/* harmony default export */ var to_integer_x_esm = (to_integer_x_esm_toInteger);

@@ -1633,0 +1479,0 @@

8

dist/is-index-x.min.js

@@ -5,9 +5,9 @@ /*!

"copywrite": "Copyright (c) 2017",
"date": "2019-07-22T12:55:10.897Z",
"date": "2019-07-24T00:36:23.298Z",
"describe": "",
"description": "Determine whether the passed value is a zero based index.",
"file": "is-index-x.min.js",
"hash": "5a866a48b22af362e903",
"hash": "5f0e5eba513b884e9214",
"license": "MIT",
"version": "2.0.10"
"version": "2.0.11"
}

@@ -21,3 +21,3 @@ */

* Released under the MIT License.
*/e.exports=function(e){return"object"==typeof e?null===e:"function"!=typeof e}},function(e,t,r){"use strict";var n=Date.prototype.getDay,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return n.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,r){"use strict";(function(t){var n=t.Symbol,o=r(5);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,r(4))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,r){"use strict";r.r(t);var n=function(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return{threw:!1,value:e.apply(this,r)}}catch(e){return{threw:!0,value:e}}},o=r(0),i=r.n(o);for(var s=n(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),"function"==typeof Symbol&&i()(Symbol(""))}.bind(void 0)),c=!1===s.threw&&!0===s.value,u=c&&Symbol.prototype.toString,a="function"==typeof u&&i.a,f="".constructor,l=function(e){return a&&a(e)?u.call(e):f(e)},p=r(1),d=r.n(p),y=r(2),b=r.n(y),g=function(e){return!!e},v={}.toString,m=function(e){return null===e?"[object Null]":void 0===e?"[object Undefined]":v.call(e)},w=c&&i()(Symbol.toStringTag),h=function(e){return null==e},S=function(e){if(h(e))throw new TypeError("Cannot call method on ".concat(e));return e},j="Cannot convert a Symbol value to a string",O=j.constructor,x=function(e){if(i()(e))throw new TypeError(j);return O(e)},T=function(e){return x(S(e))},E=[{code:9,description:"Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\t"},{code:10,description:"Line Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\n"},{code:11,description:"Vertical Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\v"},{code:12,description:"Form Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\f"},{code:13,description:"Carriage Return",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\r"},{code:32,description:"Space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:160,description:"No-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:5760,description:"Ogham space mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:6158,description:"Mongolian vowel separator",es5:!0,es2015:!0,es2016:!0,es2017:!1,es2018:!1,string:"᠎"},{code:8192,description:"En quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8193,description:"Em quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8194,description:"En space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8195,description:"Em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8196,description:"Three-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8197,description:"Four-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8198,description:"Six-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8199,description:"Figure space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8200,description:"Punctuation space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8201,description:"Thin space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8202,description:"Hair space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8232,description:"Line separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2028"},{code:8233,description:"Paragraph separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2029"},{code:8239,description:"Narrow no-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8287,description:"Medium mathematical space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:12288,description:"Ideographic space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:65279,description:"Byte Order Mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\ufeff"}],P="",F="",M=E.length,N=0;N<M;N+=1)E[N].es2016&&(P+=E[N].string),E[N].es2018&&(F+=E[N].string);var $=F,k=P,C="",_=/none/.constructor,D=(new _("^[".concat(k,"]+")),new _("^[".concat($,"]+"))),I=C.replace;var A=function(e){return I.call(T(e),D,C)},X="",q=/none/.constructor,L=(new q("[".concat(k,"]+$")),new q("[".concat($,"]+$"))),R=X.replace;var B=function(e){return R.call(T(e),L,X)};var G=function(e){return A(B(e))},H=" ",U=/none/.constructor,V=(new U("[".concat(k,"]+"),"g"),new U("[".concat($,"]+"),"g")),z=H.replace;var J=function(e){return z.call(G(e),V,H)},K=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Q="".replace,W=function(e,t){return Q.call(T(e),K,arguments.length>1?x(t):"")};var Y=n.constructor,Z=(!0).constructor,ee=n.toString,te=/^class /,re=te.test,ne=!1===n(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),Y('"use strict"; return class My {};')()}.bind(void 0)).threw,oe=function(e){return re.call(te,J(W(ee.call(e)," ")))},ie=function(e){var t=n(oe,e);return!1===t.threw&&t.value},se=function(e,t){if(d()(e))return!1;if(w)return function(e,t){return!(ne&&!1===t&&ie(e)||!1!==n.call(e,ee).threw)}(e,g(t));if(ne&&!1===Z(t)&&ie(e))return!1;var r=m(e);return"[object Function]"===r||"[object GeneratorFunction]"===r||"[object AsyncFunction]"===r},ce="string".constructor,ue=(0).constructor,ae=c&&Symbol.toPrimitive,fe=c&&Symbol.prototype.valueOf,le=["toString","valueOf"],pe=["valueOf","toString"],de=function(e,t){if(S(e),"string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');for(var r,n,o="string"===t?le:pe,i=0;i<2;i+=1)if(r=e[o[i]],se(r)&&(n=r.call(e),d()(n)))return n;throw new TypeError("No default value")},ye=function(e,t){if(t){if(e===ce)return"string";if(e===ue)return"number"}return"default"},be=function(e){if(c){if(ae)return function(e,t){var r=e[t];if(!1===h(r)){if(!1===se(r))throw new TypeError("".concat(r," returned for property ").concat(t," of object ").concat(e," is not a function"));return r}}(e,ae);if(i()(e))return fe}},ge=function(e,t){if(d()(e))return e;var r=ye(t,arguments.length>1),n=be(e);if(void 0!==n){var o=n.call(e,r);if(d()(o))return o;throw new TypeError("unable to convert exotic object to primitive")}var s="default"===r&&(b()(e)||i()(e))?"string":r;return de(e,"default"===s?"number":s)},ve=NaN,me=parseInt,we=(0).constructor,he="".charAt,Se=/^[-+]?0[xX]/,je=Se.test;var Oe=function(e,t){var r=A(x(e));return"᠎"===he.call(r,0)?ve:me(r,we(t)||(je.call(Se,r)?16:10))},xe=2,Te=8,Ee=2,Pe="Cannot convert a Symbol value to a number",Fe=Ee.constructor,Me=Pe.slice,Ne=/^0b[01]+$/i,$e=Ne.constructor,ke=Ne.test,Ce=function(e){return ke.call(Ne,e)},_e=/^0o[0-7]+$/i,De=function(e){return ke.call(_e,e)},Ie=(new $e("[…​￾]","g"),new $e("[…᠎​￾]","g")),Ae=/^[-+]0x[0-9a-f]+$/i,Xe=function(e){return ke.call(Ae,e)};var qe=function e(t){var r=ge(t,Fe);if(i()(r))throw new TypeError(Pe);if("string"==typeof r){if(Ce(r))return e(Oe(Me.call(r,Ee),xe));if(De(r))return e(Oe(Me.call(r,Ee),Te));if(function(e){return ke.call(Ie,e)}(r)||Xe(r))return ve;var n=G(r);if(n!==r)return e(n)}return Fe(r)},Le=function(e){return e!=e},Re=function(e){return"number"==typeof e&&!1===Le(e)&&e!==1/0&&e!==-1/0};var Be=function(e){var t=qe(e);return 0===t||Le(t)?t:t>0?1:-1},Ge=Math.abs,He=Math.floor;var Ue=function(e){var t=qe(e);return Le(t)?0:0===t||!1===Re(t)?t:Be(t)*He(Ge(t))},Ve=function(e){var t=qe(e),r=arguments.length;if(r<2)return t;var n,o=qe(arguments[1]);if(r<3?(n=o,o=0):n=qe(arguments[2]),o>n)throw new RangeError('"min" must be less than "max"');return t<o?o:t>n?n:t},ze=/^(?:0|[1-9]\d*)$/,Je=ze.test;t.default=function(e,t){var r=l(e);if(!1===Je.call(ze,r))return!1;var n=qe(r);return arguments.length>1?n<Ve(Ue(t),9007199254740991):n<9007199254740991}}])});
*/e.exports=function(e){return"object"==typeof e?null===e:"function"!=typeof e}},function(e,t,r){"use strict";var n=Date.prototype.getDay,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return n.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,r){"use strict";(function(t){var n=t.Symbol,o=r(5);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,r(4))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,r){"use strict";r.r(t);var n=function(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return{threw:!1,value:e.apply(this,r)}}catch(e){return{threw:!0,value:e}}},o=r(0),i=r.n(o);for(var s=n(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),"function"==typeof Symbol&&i()(Symbol(""))}.bind(void 0)),c=!1===s.threw&&!0===s.value,u=c&&Symbol.prototype.toString,a="function"==typeof u&&i.a,f="".constructor,l=function(e){return a&&a(e)?u.call(e):f(e)},p=r(1),d=r.n(p),y=r(2),b=r.n(y),g=function(e){return!!e},m={}.toString,v=function(e){return null===e?"[object Null]":void 0===e?"[object Undefined]":m.call(e)},w=c&&i()(Symbol.toStringTag),h=function(e){return null==e},S=function(e){if(h(e))throw new TypeError("Cannot call method on ".concat(e));return e},j="Cannot convert a Symbol value to a string",O=j.constructor,x=function(e){if(i()(e))throw new TypeError(j);return O(e)},T=function(e){return x(S(e))},E=[{code:9,description:"Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\t"},{code:10,description:"Line Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\n"},{code:11,description:"Vertical Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\v"},{code:12,description:"Form Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\f"},{code:13,description:"Carriage Return",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\r"},{code:32,description:"Space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:160,description:"No-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:5760,description:"Ogham space mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:6158,description:"Mongolian vowel separator",es5:!0,es2015:!0,es2016:!0,es2017:!1,es2018:!1,string:"᠎"},{code:8192,description:"En quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8193,description:"Em quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8194,description:"En space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8195,description:"Em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8196,description:"Three-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8197,description:"Four-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8198,description:"Six-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8199,description:"Figure space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8200,description:"Punctuation space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8201,description:"Thin space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8202,description:"Hair space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8232,description:"Line separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2028"},{code:8233,description:"Paragraph separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2029"},{code:8239,description:"Narrow no-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8287,description:"Medium mathematical space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:12288,description:"Ideographic space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:65279,description:"Byte Order Mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\ufeff"}],P="",F=E.length,M=0;M<F;M+=1)E[M].es2016&&E[M].string,E[M].es2018&&(P+=E[M].string);var N=P,C=new(0,/none/.constructor)("^[".concat(N,"]+")),$="".replace,k=function(e){return $.call(T(e),C,"")},_=new(0,/none/.constructor)("[".concat(N,"]+$")),D="".replace,I=function(e){return D.call(T(e),_,"")},A=function(e){return k(I(e))},X=new(0,/none/.constructor)("[".concat(N,"]+"),"g"),q=" ".replace,L=function(e){return q.call(A(e),X," ")},R=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,B="".replace,G=function(e,t){return B.call(T(e),R,arguments.length>1?x(t):"")};var H=n.constructor,U=(!0).constructor,V=n.toString,z=/^class /,J=z.test,K=!1===n(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),H('"use strict"; return class My {};')()}.bind(void 0)).threw,Q=function(e){return J.call(z,L(G(V.call(e)," ")))},W=function(e){var t=n(Q,e);return!1===t.threw&&t.value},Y=function(e,t){if(d()(e))return!1;if(w)return function(e,t){return!(K&&!1===t&&W(e)||!1!==n.call(e,V).threw)}(e,g(t));if(K&&!1===U(t)&&W(e))return!1;var r=v(e);return"[object Function]"===r||"[object GeneratorFunction]"===r||"[object AsyncFunction]"===r},Z="string".constructor,ee=(0).constructor,te=c&&Symbol.toPrimitive,re=c&&Symbol.prototype.valueOf,ne=["toString","valueOf"],oe=["valueOf","toString"],ie=function(e,t){if(S(e),"string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');for(var r,n,o="string"===t?ne:oe,i=0;i<2;i+=1)if(r=e[o[i]],Y(r)&&(n=r.call(e),d()(n)))return n;throw new TypeError("No default value")},se=function(e,t){if(t){if(e===Z)return"string";if(e===ee)return"number"}return"default"},ce=function(e){if(c){if(te)return function(e,t){var r=e[t];if(!1===h(r)){if(!1===Y(r))throw new TypeError("".concat(r," returned for property ").concat(t," of object ").concat(e," is not a function"));return r}}(e,te);if(i()(e))return re}},ue=function(e,t){if(d()(e))return e;var r=se(t,arguments.length>1),n=ce(e);if(void 0!==n){var o=n.call(e,r);if(d()(o))return o;throw new TypeError("unable to convert exotic object to primitive")}var s="default"===r&&(b()(e)||i()(e))?"string":r;return ie(e,"default"===s?"number":s)},ae=parseInt,fe=(0).constructor,le="".charAt,pe=/^[-+]?0[xX]/,de=pe.test,ye=function(e,t){var r=k(x(e));return"᠎"===le.call(r,0)?NaN:ae(r,fe(t)||(de.call(pe,r)?16:10))},be=2..constructor,ge="Cannot convert a Symbol value to a number".slice,me=/^0b[01]+$/i,ve=me.test,we=/^0o[0-7]+$/i,he=new(0,me.constructor)("[…᠎​￾]","g"),Se=/^[-+]0x[0-9a-f]+$/i,je=function e(t){var r=ue(t,be);if(i()(r))throw new TypeError("Cannot convert a Symbol value to a number");if("string"==typeof r){if(function(e){return ve.call(me,e)}(r))return e(ye(ge.call(r,2),2));if(function(e){return ve.call(we,e)}(r))return e(ye(ge.call(r,2),8));if(function(e){return ve.call(he,e)}(r)||function(e){return ve.call(Se,e)}(r))return NaN;var n=A(r);if(n!==r)return e(n)}return be(r)},Oe=function(e){return e!=e},xe=function(e){return"number"==typeof e&&!1===Oe(e)&&e!==1/0&&e!==-1/0},Te=function(e){var t=je(e);return 0===t||Oe(t)?t:t>0?1:-1},Ee=Math.abs,Pe=Math.floor,Fe=function(e){var t=je(e);return Oe(t)?0:0===t||!1===xe(t)?t:Te(t)*Pe(Ee(t))},Me=function(e){var t=je(e),r=arguments.length;if(r<2)return t;var n,o=je(arguments[1]);if(r<3?(n=o,o=0):n=je(arguments[2]),o>n)throw new RangeError('"min" must be less than "max"');return t<o?o:t>n?n:t},Ne=/^(?:0|[1-9]\d*)$/,Ce=Ne.test;t.default=function(e,t){var r=l(e);if(!1===Ce.call(Ne,r))return!1;var n=je(r);return arguments.length>1?n<Me(Fe(t),9007199254740991):n<9007199254740991}}])});
//# sourceMappingURL=is-index-x.min.js.map
{
"name": "is-index-x",
"version": "2.0.10",
"version": "2.0.11",
"description": "Determine whether the passed value is a zero based index.",

@@ -52,6 +52,6 @@ "homepage": "https://github.com/Xotic750/is-index-x",

"dependencies": {
"math-clamp-x": "^3.0.14",
"to-integer-x": "^4.0.20",
"to-number-x": "^3.0.20",
"to-string-symbols-supported-x": "^2.0.14"
"math-clamp-x": "^3.0.15",
"to-integer-x": "^4.0.21",
"to-number-x": "^3.0.21",
"to-string-symbols-supported-x": "^2.0.15"
},

@@ -70,3 +70,3 @@ "devDependencies": {

"@babel/runtime": "^7.5.5",
"@prorenata/eslint-config-vue": "^1.13.10",
"@prorenata/eslint-config-vue": "^1.13.11",
"@types/jest": "^24.0.15",

@@ -94,4 +94,4 @@ "@types/node": "^12.6.8",

"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "^22.13.0",
"eslint-plugin-jsdoc": "^15.6.1",
"eslint-plugin-jest": "^22.13.6",
"eslint-plugin-jsdoc": "^15.7.1",
"eslint-plugin-json": "^1.4.0",

@@ -119,3 +119,3 @@ "eslint-plugin-lodash": "^5.1.0",

"rimraf": "^2.6.3",
"semver": "^6.2.0",
"semver": "^6.3.0",
"source-map-loader": "^0.2.4",

@@ -125,3 +125,3 @@ "strip-ansi": "^5.2.0",

"typescript": "^3.5.3",
"webpack": "^4.36.1",
"webpack": "^4.37.0",
"webpack-bundle-analyzer": "^3.3.2",

@@ -128,0 +128,0 @@ "webpack-cli": "^3.3.6",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc