Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

calculate-from-index-x

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calculate-from-index-x - npm Package Compare versions

Comparing version 3.0.11 to 3.0.12

243

dist/calculate-from-index-x.js

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

"copywrite": "Copyright (c) 2017",
"date": "2019-07-22T13:02:24.632Z",
"date": "2019-07-24T00:43:05.655Z",
"describe": "",
"description": "Calculates a fromIndex of a given value for an array.",
"file": "calculate-from-index-x.js",
"hash": "286fb19a298047271ac8",
"hash": "1000ac1236293265e2d6",
"license": "MIT",
"version": "3.0.11"
"version": "3.0.12"
}

@@ -858,7 +858,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).
*

@@ -870,18 +869,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);

@@ -894,7 +882,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).
*

@@ -906,18 +893,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);

@@ -929,4 +905,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).
*

@@ -938,19 +914,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);

@@ -963,3 +927,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');

@@ -970,26 +933,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);

@@ -1295,3 +1245,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).
*

@@ -1312,25 +1262,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));

@@ -1345,3 +1273,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);

@@ -1379,8 +1307,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');

@@ -1398,3 +1320,3 @@

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

@@ -1407,40 +1329,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);

@@ -1454,7 +1339,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));
}

@@ -1469,3 +1354,3 @@

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

@@ -1477,3 +1362,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);

@@ -1529,3 +1414,3 @@

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

@@ -1538,22 +1423,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);

@@ -1568,3 +1434,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);

@@ -1580,3 +1446,3 @@

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

@@ -1587,23 +1453,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);

@@ -1622,3 +1468,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);

@@ -1631,3 +1477,3 @@

* Converts `value` to an integer suitable for use as the length of an
* array-like object. (ES2016).
* array-like object. (ES2019).
*

@@ -1638,24 +1484,3 @@ * @param {*} value - The value to convert.

function toLength2016(value) {
var len = toInteger2016(value); // includes converting -0 to +0
if (len <= 0) {
return 0;
}
if (len > MAX_SAFE_INTEGER) {
return MAX_SAFE_INTEGER;
}
return len;
}
/**
* Converts `value` to an integer suitable for use as the length of an
* array-like object. (ES2018).
*
* @param {*} value - The value to convert.
* @returns {number} Returns the converted integer.
*/
var to_length_x_esm_toLength2018 = function toLength2018(value) {
var to_length_x_esm_toLength = function toLength(value) {
var len = to_integer_x_esm(value); // includes converting -0 to +0

@@ -1674,3 +1499,3 @@

/* harmony default export */ var to_length_x_esm = (to_length_x_esm_toLength2018);
/* harmony default export */ var to_length_x_esm = (to_length_x_esm_toLength);

@@ -1677,0 +1502,0 @@

8

dist/calculate-from-index-x.min.js

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

"copywrite": "Copyright (c) 2017",
"date": "2019-07-22T13:02:24.632Z",
"date": "2019-07-24T00:43:05.655Z",
"describe": "",
"description": "Calculates a fromIndex of a given value for an array.",
"file": "calculate-from-index-x.min.js",
"hash": "4466c55e293d5179e16d",
"hash": "c553b0d9ad905c7f2968",
"license": "MIT",
"version": "3.0.11"
"version": "3.0.12"
}

@@ -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){return null==e},o=function(e){if(n(e))throw new TypeError("Cannot call method on ".concat(e));return e},i={}.constructor,c=function(e){return i(o(e))},s=r(0),u=r.n(s),a=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}}};for(var f=a(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),"function"==typeof Symbol&&u()(Symbol(""))}.bind(void 0)),l=!1===f.threw&&!0===f.value,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=l&&u()(Symbol.toStringTag),h="Cannot convert a Symbol value to a string",S=h.constructor,j=function(e){if(u()(e))throw new TypeError(h);return S(e)},O=function(e){return j(o(e))},x=[{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"}],T="",E="",P=x.length,F=0;F<P;F+=1)x[F].es2016&&(T+=x[F].string),x[F].es2018&&(E+=x[F].string);var M=E,N=T,$="",k=/none/.constructor,C=(new k("^[".concat(N,"]+")),new k("^[".concat(M,"]+"))),_=$.replace;var D=function(e){return _.call(O(e),C,$)},I="",A=/none/.constructor,X=(new A("[".concat(N,"]+$")),new A("[".concat(M,"]+$"))),q=I.replace;var L=function(e){return q.call(O(e),X,I)};var B=function(e){return D(L(e))},G=" ",H=/none/.constructor,R=(new H("[".concat(N,"]+"),"g"),new H("[".concat(M,"]+"),"g")),U=G.replace;var V=function(e){return U.call(B(e),R,G)},z=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,J="".replace,K=function(e,t){return J.call(O(e),z,arguments.length>1?j(t):"")};var Q=a.constructor,W=(!0).constructor,Y=a.toString,Z=/^class /,ee=Z.test,te=!1===a(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),Q('"use strict"; return class My {};')()}.bind(void 0)).threw,re=function(e){return ee.call(Z,V(K(Y.call(e)," ")))},ne=function(e){var t=a(re,e);return!1===t.threw&&t.value},oe=function(e,t){if(d()(e))return!1;if(w)return function(e,t){return!(te&&!1===t&&ne(e)||!1!==a.call(e,Y).threw)}(e,g(t));if(te&&!1===W(t)&&ne(e))return!1;var r=m(e);return"[object Function]"===r||"[object GeneratorFunction]"===r||"[object AsyncFunction]"===r},ie="string".constructor,ce=(0).constructor,se=l&&Symbol.toPrimitive,ue=l&&Symbol.prototype.valueOf,ae=["toString","valueOf"],fe=["valueOf","toString"],le=function(e,t){if(o(e),"string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');for(var r,n,i="string"===t?ae:fe,c=0;c<2;c+=1)if(r=e[i[c]],oe(r)&&(n=r.call(e),d()(n)))return n;throw new TypeError("No default value")},pe=function(e,t){if(t){if(e===ie)return"string";if(e===ce)return"number"}return"default"},de=function(e){if(l){if(se)return function(e,t){var r=e[t];if(!1===n(r)){if(!1===oe(r))throw new TypeError("".concat(r," returned for property ").concat(t," of object ").concat(e," is not a function"));return r}}(e,se);if(u()(e))return ue}},ye=function(e,t){if(d()(e))return e;var r=pe(t,arguments.length>1),n=de(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 i="default"===r&&(b()(e)||u()(e))?"string":r;return le(e,"default"===i?"number":i)},be=NaN,ge=parseInt,ve=(0).constructor,me="".charAt,we=/^[-+]?0[xX]/,he=we.test;var Se=function(e,t){var r=D(j(e));return"᠎"===me.call(r,0)?be:ge(r,ve(t)||(he.call(we,r)?16:10))},je=2,Oe=8,xe=2,Te="Cannot convert a Symbol value to a number",Ee=xe.constructor,Pe=Te.slice,Fe=/^0b[01]+$/i,Me=Fe.constructor,Ne=Fe.test,$e=function(e){return Ne.call(Fe,e)},ke=/^0o[0-7]+$/i,Ce=function(e){return Ne.call(ke,e)},_e=(new Me("[…​￾]","g"),new Me("[…᠎​￾]","g")),De=/^[-+]0x[0-9a-f]+$/i,Ie=function(e){return Ne.call(De,e)};var Ae=function e(t){var r=ye(t,Ee);if(u()(r))throw new TypeError(Te);if("string"==typeof r){if($e(r))return e(Se(Pe.call(r,xe),je));if(Ce(r))return e(Se(Pe.call(r,xe),Oe));if(function(e){return Ne.call(_e,e)}(r)||Ie(r))return be;var n=B(r);if(n!==r)return e(n)}return Ee(r)},Xe=function(e){return e!=e},qe=function(e){return"number"==typeof e&&!1===Xe(e)&&e!==1/0&&e!==-1/0};var Le=function(e){var t=Ae(e);return 0===t||Xe(t)?t:t>0?1:-1},Be=Math.abs,Ge=Math.floor;var He=function(e){var t=Ae(e);return Xe(t)?0:0===t||!1===qe(t)?t:Le(t)*Ge(Be(t))},Re=9007199254740991;var Ue=function(e){var t=He(e);return t<=0?0:t>Re?Re:t},Ve=function(e){return qe(e)&&He(e)===e},ze=function(e){return Ve(e)&&e>=-9007199254740991&&e<=9007199254740991},Je=function(e){return ze(e)&&e>=0},Ke=function(e){return!1===n(e)&&!1===oe(e,!0)&&Je(e.length)};t.default=function(e,t){var r=c(e);if(!1===Ke(r))return 0;var n,o,i=He(t);return i>=0?i:(n=0,o=Ue(r.length)+i,n>=o?n:o)}}])});
*/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){return null==e},o=function(e){if(n(e))throw new TypeError("Cannot call method on ".concat(e));return e},i={}.constructor,s=function(e){return i(o(e))},c=r(0),u=r.n(c),a=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}}};for(var f=a(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),"function"==typeof Symbol&&u()(Symbol(""))}.bind(void 0)),l=!1===f.threw&&!0===f.value,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=l&&u()(Symbol.toStringTag),h="Cannot convert a Symbol value to a string",S=h.constructor,j=function(e){if(u()(e))throw new TypeError(h);return S(e)},O=function(e){return j(o(e))},x=[{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"}],T="",E=x.length,P=0;P<E;P+=1)x[P].es2016&&x[P].string,x[P].es2018&&(T+=x[P].string);var F=T,M=new(0,/none/.constructor)("^[".concat(F,"]+")),N="".replace,C=function(e){return N.call(O(e),M,"")},k=new(0,/none/.constructor)("[".concat(F,"]+$")),$="".replace,_=function(e){return $.call(O(e),k,"")},D=function(e){return C(_(e))},I=new(0,/none/.constructor)("[".concat(F,"]+"),"g"),A=" ".replace,X=function(e){return A.call(D(e),I," ")},q=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,L="".replace,B=function(e,t){return L.call(O(e),q,arguments.length>1?j(t):"")};var G=a.constructor,H=(!0).constructor,R=a.toString,U=/^class /,V=U.test,z=!1===a(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),G('"use strict"; return class My {};')()}.bind(void 0)).threw,J=function(e){return V.call(U,X(B(R.call(e)," ")))},K=function(e){var t=a(J,e);return!1===t.threw&&t.value},Q=function(e,t){if(d()(e))return!1;if(w)return function(e,t){return!(z&&!1===t&&K(e)||!1!==a.call(e,R).threw)}(e,g(t));if(z&&!1===H(t)&&K(e))return!1;var r=v(e);return"[object Function]"===r||"[object GeneratorFunction]"===r||"[object AsyncFunction]"===r},W="string".constructor,Y=(0).constructor,Z=l&&Symbol.toPrimitive,ee=l&&Symbol.prototype.valueOf,te=["toString","valueOf"],re=["valueOf","toString"],ne=function(e,t){if(o(e),"string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');for(var r,n,i="string"===t?te:re,s=0;s<2;s+=1)if(r=e[i[s]],Q(r)&&(n=r.call(e),d()(n)))return n;throw new TypeError("No default value")},oe=function(e,t){if(t){if(e===W)return"string";if(e===Y)return"number"}return"default"},ie=function(e){if(l){if(Z)return function(e,t){var r=e[t];if(!1===n(r)){if(!1===Q(r))throw new TypeError("".concat(r," returned for property ").concat(t," of object ").concat(e," is not a function"));return r}}(e,Z);if(u()(e))return ee}},se=function(e,t){if(d()(e))return e;var r=oe(t,arguments.length>1),n=ie(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 i="default"===r&&(b()(e)||u()(e))?"string":r;return ne(e,"default"===i?"number":i)},ce=parseInt,ue=(0).constructor,ae="".charAt,fe=/^[-+]?0[xX]/,le=fe.test,pe=function(e,t){var r=C(j(e));return"᠎"===ae.call(r,0)?NaN:ce(r,ue(t)||(le.call(fe,r)?16:10))},de=2..constructor,ye="Cannot convert a Symbol value to a number".slice,be=/^0b[01]+$/i,ge=be.test,me=/^0o[0-7]+$/i,ve=new(0,be.constructor)("[…᠎​￾]","g"),we=/^[-+]0x[0-9a-f]+$/i,he=function e(t){var r=se(t,de);if(u()(r))throw new TypeError("Cannot convert a Symbol value to a number");if("string"==typeof r){if(function(e){return ge.call(be,e)}(r))return e(pe(ye.call(r,2),2));if(function(e){return ge.call(me,e)}(r))return e(pe(ye.call(r,2),8));if(function(e){return ge.call(ve,e)}(r)||function(e){return ge.call(we,e)}(r))return NaN;var n=D(r);if(n!==r)return e(n)}return de(r)},Se=function(e){return e!=e},je=function(e){return"number"==typeof e&&!1===Se(e)&&e!==1/0&&e!==-1/0},Oe=function(e){var t=he(e);return 0===t||Se(t)?t:t>0?1:-1},xe=Math.abs,Te=Math.floor,Ee=function(e){var t=he(e);return Se(t)?0:0===t||!1===je(t)?t:Oe(t)*Te(xe(t))},Pe=function(e){var t=Ee(e);return t<=0?0:t>9007199254740991?9007199254740991:t},Fe=function(e){return je(e)&&Ee(e)===e},Me=function(e){return Fe(e)&&e>=-9007199254740991&&e<=9007199254740991},Ne=function(e){return Me(e)&&e>=0},Ce=function(e){return!1===n(e)&&!1===Q(e,!0)&&Ne(e.length)};t.default=function(e,t){var r=s(e);if(!1===Ce(r))return 0;var n,o,i=Ee(t);return i>=0?i:(n=0,o=Pe(r.length)+i,n>=o?n:o)}}])});
//# sourceMappingURL=calculate-from-index-x.min.js.map
{
"name": "calculate-from-index-x",
"version": "3.0.11",
"version": "3.0.12",
"description": "Calculates a fromIndex of a given value for an array.",

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

"dependencies": {
"is-array-like-x": "^2.0.11",
"to-integer-x": "^4.0.20",
"to-length-x": "^4.0.16",
"to-object-x": "^2.0.13"
"is-array-like-x": "^2.0.12",
"to-integer-x": "^4.0.21",
"to-length-x": "^4.0.18",
"to-object-x": "^2.0.14"
},

@@ -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