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.1.0 to 3.1.1

556

dist/calculate-from-index-x.js

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

"copywrite": "Copyright (c) 2017",
"date": "2019-08-14T15:31:02.478Z",
"date": "2019-08-20T19:57:08.963Z",
"describe": "",
"description": "Calculates a fromIndex of a given value for an array.",
"file": "calculate-from-index-x.js",
"hash": "2034cf56df8624d10030",
"hash": "162148f903e3332b474f",
"license": "MIT",
"version": "3.1.0"
"version": "3.1.1"
}

@@ -203,16 +203,21 @@ */

"use strict";
/*!
* is-primitive <https://github.com/jonschlinkert/is-primitive>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Released under the MIT License.
*/
var strValue = String.prototype.valueOf;
var tryStringObject = function tryStringObject(value) {
try {
strValue.call(value);
return true;
} catch (e) {
return false;
}
};
var toStr = Object.prototype.toString;
var strClass = '[object String]';
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
module.exports = function isPrimitive(val) {
if (typeof val === 'object') {
return val === null;
}
return typeof val !== 'function';
module.exports = function isString(value) {
if (typeof value === 'string') { return true; }
if (typeof value !== 'object') { return false; }
return hasToStringTag ? tryStringObject(value) : toStr.call(value) === strClass;
};

@@ -411,3 +416,363 @@

// CONCATENATED MODULE: ./node_modules/is-primitive-x/dist/is-primitive-x.esm.js
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
/**
* Returns true if the value is a primitive.
*
* @param {*} [val] - The value to test.
* @returns {boolean} True if a primitive, otherwise false..
*/
var isPrimitive = function isPrimitive(val) {
return _typeof(val) === 'object' ? val === null : typeof val !== 'function';
};
/* harmony default export */ var is_primitive_x_esm = (isPrimitive);
// EXTERNAL MODULE: ./node_modules/is-string/index.js
var is_string = __webpack_require__(1);
var is_string_default = /*#__PURE__*/__webpack_require__.n(is_string);
// CONCATENATED MODULE: ./node_modules/has-boxed-string-x/dist/has-boxed-string-x.esm.js
var has_boxed_string_x_esm_string = 'a';
var boxedString = {}.constructor(has_boxed_string_x_esm_string);
/**
* Check failure of by-index access of string characters (IE < 9)
* and failure of `0 in boxedString` (Rhino).
*
* `true` if no failure; otherwise `false`.
*
* @type boolean
*/
var hasBoxed = boxedString[0] === has_boxed_string_x_esm_string && 0 in boxedString;
/* harmony default export */ var has_boxed_string_x_esm = (hasBoxed);
// CONCATENATED MODULE: ./node_modules/noop-x/dist/noop-x.esm.js
/**
* This method returns undefined.
*
* @returns {undefined} Always undefined.
*/
var noop = function noop() {};
/* eslint-disable-line lodash/prefer-noop */
/* harmony default export */ var noop_x_esm = (noop);
// CONCATENATED MODULE: ./node_modules/has-working-bind-x/dist/has-working-bind-x.esm.js
var has_working_bind_x_esm_bind = noop_x_esm.bind;
var test1 = function test1() {
var a1 = null;
var a2 = null;
var context = null;
var testThis = [];
var test1Fn = function test1Fn(arg1, arg2) {
/* eslint-disable-next-line babel/no-invalid-this */
context = this;
a1 = arg1;
a2 = arg2;
/* eslint-disable-next-line prefer-rest-params */
return arguments;
};
try {
var boundFn = has_working_bind_x_esm_bind.apply(test1Fn, [testThis, 1]);
var args = boundFn(2);
return boundFn.length === 1 && args.length === 2 && a1 === 1 && a2 === 2 && context === testThis;
} catch (e) {
return false;
}
};
var test2 = function test2() {
var a1 = null;
var a2 = null;
var context = null;
var oracle = [1, 2, 3];
var Ctr = function Ctr(arg1, arg2) {
a1 = arg1;
a2 = arg2;
context = this;
return oracle;
};
try {
var BoundFn = has_working_bind_x_esm_bind.apply(Ctr, [null]);
var returned = new BoundFn(1, 2);
return BoundFn.length === Ctr.length && returned === oracle && a1 === 1 && a2 === 2 && context !== oracle;
} catch (e) {
return false;
}
};
/**
* Indicates if the engine has a working bind function.
*
* @type {boolean}
*/
var isWorking = typeof has_working_bind_x_esm_bind === 'function' && test1() && test2();
/* harmony default export */ var has_working_bind_x_esm = (isWorking);
// CONCATENATED MODULE: ./node_modules/util-pusher-x/dist/util-pusher-x.esm.js
var EMPTY_STRING = '';
var split = EMPTY_STRING.split;
var max = Math.max;
var util_pusher_x_esm_bind = is_primitive_x_esm.bind,
util_pusher_x_esm_call = is_primitive_x_esm.call;
var stringSplit = function stringSplit(string, pattern) {
// noinspection JSUnresolvedFunction
return split.call(string, pattern);
};
var $split = has_working_bind_x_esm ? util_pusher_x_esm_bind.call(util_pusher_x_esm_call, split) : stringSplit;
var util_pusher_x_esm_getIterable = function getIterable(arrayLike) {
// noinspection JSUnresolvedFunction
return is_string_default()(arrayLike) ? $split(arrayLike, EMPTY_STRING) : arrayLike;
}; // eslint-disable jsdoc/no-undefined-types
// noinspection JSCommentMatchesSignature
/**
* This pushes or concatenates into a new or existing array.
*
* @param {Array} arrayLike - The source.
* @param {number} [from=0] - The from source index.
* @param {Array} [target=[]] - The target array.
* @returns {*} The target array.
*/
// eslint-enable jsdoc/no-undefined-types
var util_pusher_x_esm_pusher = function pusher(arrayLike, from) {
/* eslint-disable-next-line prefer-rest-params */
var target = arguments.length > 2 ? arguments[2] : [];
if (typeof arrayLike !== 'string' && is_primitive_x_esm(arrayLike)) {
return target;
}
var iterable = has_boxed_string_x_esm ? arrayLike : util_pusher_x_esm_getIterable(arrayLike);
var length = iterable.length;
for (var i = max(0, from) || 0; i < length; i += 1) {
target[target.length] = arrayLike[i];
}
return target;
};
/* harmony default export */ var util_pusher_x_esm = (util_pusher_x_esm_pusher);
// CONCATENATED MODULE: ./node_modules/simple-bind-x/dist/simple-bind-x.esm.js
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
var nativeBind = util_pusher_x_esm.bind,
simple_bind_x_esm_call = util_pusher_x_esm.call;
var ERROR_MESSAGE = 'bind called on incompatible ';
var simple_bind_x_esm_object = {};
var ObjectCtr = simple_bind_x_esm_object.constructor;
var toStringTag = simple_bind_x_esm_object.toString;
var funcType = '[object Function]';
var ZERO = 0;
var argsOffset = 2;
var getMax = function getMax(a, b) {
return a >= b ? a : b;
};
var simple_bind_x_esm_assertIsFunction = function assertIsFunction(value) {
if (typeof value !== 'function' && toStringTag.apply(value) !== funcType) {
throw new TypeError(ERROR_MESSAGE + value);
}
};
var boundFns = [function zero(binder) {
return function boundFn() {
/* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */
return binder.apply(this, util_pusher_x_esm(arguments));
};
}, function one(binder, boundLength) {
return function boundFn(a) {
/* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */
return binder.apply(this, util_pusher_x_esm(arguments, boundLength, [a]));
};
}, function two(binder, boundLength) {
return function boundFn(a, b) {
/* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */
return binder.apply(this, util_pusher_x_esm(arguments, boundLength, [a, b]));
};
}, function three(binder, boundLength) {
/* eslint-disable-next-line max-params */
return function boundFn(a, b, c) {
/* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */
return binder.apply(this, util_pusher_x_esm(arguments, boundLength, [a, b, c]));
};
}, function four(binder, boundLength) {
/* eslint-disable-next-line max-params */
return function boundFn(a, b, c, d) {
/* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */
return binder.apply(this, util_pusher_x_esm(arguments, boundLength, [a, b, c, d]));
};
}, function five(binder, boundLength) {
/* eslint-disable-next-line max-params */
return function boundFn(a, b, c, d, e) {
/* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */
return binder.apply(this, util_pusher_x_esm(arguments, boundLength, [a, b, c, d, e]));
};
}, function six(binder, boundLength) {
/* eslint-disable-next-line max-params */
return function boundFn(a, b, c, d, e, f) {
/* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */
return binder.apply(this, util_pusher_x_esm(arguments, boundLength, [a, b, c, d, e, f]));
};
}, function seven(binder, boundLength) {
/* eslint-disable-next-line max-params */
return function boundFn(a, b, c, d, e, f, g) {
/* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */
return binder.apply(this, util_pusher_x_esm(arguments, boundLength, [a, b, c, d, e, f, g]));
};
}, function eight(binder, boundLength) {
/* eslint-disable-next-line max-params */
return function boundFn(a, b, c, d, e, f, g, h) {
/* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */
return binder.apply(this, util_pusher_x_esm(arguments, boundLength, [a, b, c, d, e, f, g, h]));
};
}];
var getBoundFn = function getBoundFn(args) {
var _args = _slicedToArray(args, 3),
binder = _args[0],
target = _args[1],
bindArgs = _args[2];
var boundLength = getMax(ZERO, target.length - getMax(ZERO, bindArgs.length - argsOffset));
var fn = boundFns[boundLength];
var boundFn = fn ? fn(binder, boundLength) : boundFns[ZERO](binder);
if (target.prototype) {
/* eslint-disable-next-line lodash/prefer-noop */
var Empty = function Empty() {};
Empty.prototype = target.prototype;
boundFn.prototype = new Empty();
Empty.prototype = null;
}
return boundFn;
};
var getResult = function getResult(target, boundArgs) {
/* eslint-disable-next-line babel/no-invalid-this */
var result = target.apply(this, boundArgs);
/* eslint-disable-next-line babel/no-invalid-this,babel/new-cap */
return ObjectCtr(result) === result ? result : this;
};
var implementation = function bind(target, thisArg) {
simple_bind_x_esm_assertIsFunction(target);
/* eslint-disable-next-line prefer-rest-params */
var bindArgs = arguments;
var bound;
var binder = function binder() {
/* eslint-disable-next-line prefer-rest-params */
var boundArgs = util_pusher_x_esm(arguments, ZERO, util_pusher_x_esm(bindArgs, argsOffset));
/* eslint-disable-next-line babel/no-invalid-this */
return this instanceof bound ? getResult.apply(this, [target, boundArgs]) : target.apply(thisArg, boundArgs);
};
bound = getBoundFn([binder, target, bindArgs]);
return bound;
};
/**
* The bind() method creates a new function that, when called, has its this
* keyword set to the provided value, with a given sequence of arguments
* preceding any provided when the new function is called.
*
* @function bind
* @param {Function} target - The target function.
* @param {*} [thisArg] - The value to be passed as the this parameter to the target
* function when the bound function is called. The value is ignored if the
* bound function is constructed using the new operator.
* @param {...*} [args] - Arguments to prepend to arguments provided to the bound
* function when invoking the target function.
* @throws {TypeError} If target is not a function.
* @returns {Function} The bound function.
*/
var $bind = has_working_bind_x_esm ? simple_bind_x_esm_call.bind(nativeBind) : implementation;
/* harmony default export */ var simple_bind_x_esm = ($bind);
// CONCATENATED MODULE: ./node_modules/simple-call-x/dist/simple-call-x.esm.js
var $TypeError = TypeError;
var nativeApply = simple_bind_x_esm.apply,
nativeCall = simple_bind_x_esm.call;
var $apply = simple_bind_x_esm(nativeCall, nativeApply);
var simple_call_x_esm_toStringTag = simple_bind_x_esm(nativeApply, {}.toString);
var simple_call_x_esm_ERROR_MESSAGE = ' is not a function';
var simple_call_x_esm_funcType = '[object Function]';
var simple_call_x_esm_assertIsFunction = function assertIsFunction(value) {
if (typeof value !== 'function' && simple_call_x_esm_toStringTag(value) !== simple_call_x_esm_funcType) {
throw new $TypeError(value + simple_call_x_esm_ERROR_MESSAGE);
}
return value;
}; // eslint-disable jsdoc/check-param-names
// noinspection JSCommentMatchesSignature
/**
* The abstract operation Call is used to call the [[Call]] internal method of a function object.
*
* @function call
* @param {Function} F - The target function.
* @param {*} [V] - The context.
* @param {Array} [args] - Argument to call the function with.
* @throws {TypeError} If target is not a function.
* @returns {*} The the result of invoking the function.
* @see https://www.ecma-international.org/ecma-262/6.0/#sec-call
*/
// eslint-enable jsdoc/check-param-names
var simple_call_x_esm_call = function call(F, V) {
/* eslint-disable-next-line prefer-rest-params */
return $apply(simple_call_x_esm_assertIsFunction(F), V, util_pusher_x_esm(arguments[2]));
};
/* harmony default export */ var simple_call_x_esm = (simple_call_x_esm_call);
// CONCATENATED MODULE: ./node_modules/attempt-x/dist/attempt-x.esm.js
// eslint-disable jsdoc/check-param-names
// noinspection JSCommentMatchesSignature
/**

@@ -418,2 +783,3 @@ * This method attempts to invoke the function, returning either the result or

*
* @function attempt
* @param {Function} [fn] - The function to attempt.

@@ -423,13 +789,11 @@ * @param {...*} [args] - The arguments to invoke the function with.

*/
var attempt = function attempt(fn) {
// eslint-disable jsdoc/check-param-names
var attempt_x_esm_attempt = function attempt(fn) {
try {
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
return {
threw: false,
/* eslint-disable-next-line babel/no-invalid-this */
value: fn.apply(this, args)
/* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */
value: simple_call_x_esm(fn, this, util_pusher_x_esm(arguments, 1))
};

@@ -444,3 +808,3 @@ } catch (e) {

/* harmony default export */ var attempt_x_esm = (attempt);
/* harmony default export */ var attempt_x_esm = (attempt_x_esm_attempt);

@@ -471,6 +835,2 @@

// EXTERNAL MODULE: ./node_modules/is-primitive/index.js
var is_primitive = __webpack_require__(1);
var is_primitive_default = /*#__PURE__*/__webpack_require__.n(is_primitive);
// EXTERNAL MODULE: ./node_modules/is-date-object/index.js

@@ -494,4 +854,39 @@ var is_date_object = __webpack_require__(2);

// CONCATENATED MODULE: ./node_modules/simple-methodize-x/dist/simple-methodize-x.esm.js
var simple_methodize_x_esm_toStringTag = {}.toString;
var simple_methodize_x_esm_ERROR_MESSAGE = 'methodize called on incompatible ';
var simple_methodize_x_esm_funcType = '[object Function]';
var simple_methodize_x_esm_assertIsFunction = function assertIsFunction(value) {
if (typeof value !== 'function' && simple_call_x_esm(simple_methodize_x_esm_toStringTag, value) !== simple_methodize_x_esm_funcType) {
throw new TypeError(simple_methodize_x_esm_ERROR_MESSAGE + value);
}
return value;
};
/**
* Methodize a prototype method. Compliant to 8 arguments.
*
* @param {Function} prototypeMethod - The prototype method to methodize.
* @throws {TypeError} If target is not a function.
* @returns {Function} The static method.
*/
var simple_methodize_x_esm_methodize = function methodize(prototypeMethod) {
simple_methodize_x_esm_assertIsFunction(prototypeMethod);
return function methodized() {
/* eslint-disable-next-line prefer-rest-params */
return simple_call_x_esm(prototypeMethod, arguments[0], util_pusher_x_esm(arguments, 1));
};
};
/* harmony default export */ var simple_methodize_x_esm = (simple_methodize_x_esm_methodize);
// CONCATENATED MODULE: ./node_modules/to-string-tag-x/dist/to-string-tag-x.esm.js
var nativeObjectToString = {}.toString;
var methodizedToString = simple_methodize_x_esm({}.toString);
/**

@@ -505,3 +900,3 @@ * The `toStringTag` method returns "[object type]", where type is the

var toStringTag = function toStringTag(value) {
var to_string_tag_x_esm_toStringTag = function toStringTag(value) {
if (value === null) {

@@ -515,6 +910,6 @@ return '[object Null]';

return nativeObjectToString.call(value);
return methodizedToString(value);
};
/* harmony default export */ var to_string_tag_x_esm = (toStringTag);
/* harmony default export */ var to_string_tag_x_esm = (to_string_tag_x_esm_toStringTag);

@@ -539,4 +934,4 @@

var ERROR_MESSAGE = 'Cannot convert a Symbol value to a string';
var castString = ERROR_MESSAGE.constructor;
var to_string_x_esm_ERROR_MESSAGE = 'Cannot convert a Symbol value to a string';
var castString = to_string_x_esm_ERROR_MESSAGE.constructor;
/**

@@ -552,3 +947,3 @@ * The abstract operation ToString converts argument to a value of type String.

if (is_symbol_default()(value)) {
throw new TypeError(ERROR_MESSAGE);
throw new TypeError(to_string_x_esm_ERROR_MESSAGE);
}

@@ -896,6 +1291,7 @@

var EMPTY_STRING = '';
var trim_left_x_esm_EMPTY_STRING = '';
var RegExpCtr = /none/.constructor;
var reLeft = new RegExpCtr("^[".concat(white_space_x_esm, "]+"));
var replace = EMPTY_STRING.replace;
var methodizedReplace = simple_methodize_x_esm(trim_left_x_esm_EMPTY_STRING.replace);
/**

@@ -910,3 +1306,3 @@ * This method removes whitespace from the start of a string. (ES2019).

var trim_left_x_esm_trimStart = function trimStart(string) {
return replace.call(require_coercible_to_string_x_esm(string), reLeft, EMPTY_STRING);
return methodizedReplace(require_coercible_to_string_x_esm(string), reLeft, trim_left_x_esm_EMPTY_STRING);
};

@@ -920,6 +1316,7 @@

var trim_right_x_esm_EMPTY_STRING = '';
var trim_right_x_esm_RegExpCtr = /none/.constructor;
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;
var reRight = new trim_right_x_esm_RegExpCtr("[".concat(white_space_x_esm, "]+$"));
var trim_right_x_esm_methodizedReplace = simple_methodize_x_esm(trim_right_x_esm_EMPTY_STRING.replace);
/**

@@ -934,3 +1331,3 @@ * This method removes whitespace from the end of a string. (ES2019).

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);
return trim_right_x_esm_methodizedReplace(require_coercible_to_string_x_esm(string), reRight, trim_right_x_esm_EMPTY_STRING);
};

@@ -963,6 +1360,7 @@

var SPACE = ' ';
var normalize_space_x_esm_RegExpCtr = /none/.constructor;
var reNormalize2018 = new normalize_space_x_esm_RegExpCtr("[".concat(white_space_x_esm, "]+"), 'g');
var normalize_space_x_esm_replace = SPACE.replace;
var reNormalize = new normalize_space_x_esm_RegExpCtr("[".concat(white_space_x_esm, "]+"), 'g');
var normalize_space_x_esm_methodizedReplace = simple_methodize_x_esm(SPACE.replace);
/**

@@ -978,3 +1376,3 @@ * This method strips leading and trailing white-space from a string,

var normalize_space_x_esm_normalizeSpace = function normalizeSpace(string) {
return normalize_space_x_esm_replace.call(trim_x_esm(string), reNormalize2018, SPACE);
return normalize_space_x_esm_methodizedReplace(trim_x_esm(string), reNormalize, SPACE);
};

@@ -988,5 +1386,6 @@

var replace_comments_x_esm_EMPTY_STRING = '';
var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;
var replace_comments_x_esm_replace = replace_comments_x_esm_EMPTY_STRING.replace;
var replace_comments_x_esm_methodizedReplace = simple_methodize_x_esm(replace_comments_x_esm_EMPTY_STRING.replace);
/**

@@ -1003,3 +1402,3 @@ * This method replaces comments in a string.

var replace_comments_x_esm_replaceComments = function replaceComments(string, replacement) {
return replace_comments_x_esm_replace.call(require_coercible_to_string_x_esm(string), STRIP_COMMENTS, arguments.length > 1 ? to_string_x_esm(replacement) : replace_comments_x_esm_EMPTY_STRING);
return replace_comments_x_esm_methodizedReplace(require_coercible_to_string_x_esm(string), STRIP_COMMENTS, arguments.length > 1 ? to_string_x_esm(replacement) : replace_comments_x_esm_EMPTY_STRING);
};

@@ -1018,5 +1417,6 @@

var FunctionCtr = attempt_x_esm.constructor;
var is_function_x_esm_SPACE = ' ';
var fToString = attempt_x_esm.toString;
var methodizedFunctionToString = simple_methodize_x_esm(attempt_x_esm.toString);
var funcTag = '[object Function]';

@@ -1026,3 +1426,3 @@ var genTag = '[object GeneratorFunction]';

var ctrRx = /^class /;
var test = ctrRx.test;
var methodizedTest = simple_methodize_x_esm(ctrRx.test);
var hasNativeClass = attempt_x_esm(function attemptee() {

@@ -1034,3 +1434,3 @@ /* eslint-disable-next-line babel/new-cap */

var is_function_x_esm_testClassString = function testClassString(value) {
return test.call(ctrRx, normalize_space_x_esm(replace_comments_x_esm(fToString.call(value), is_function_x_esm_SPACE)));
return methodizedTest(ctrRx, normalize_space_x_esm(replace_comments_x_esm(methodizedFunctionToString(value), is_function_x_esm_SPACE)));
};

@@ -1058,3 +1458,5 @@

return attempt_x_esm.call(value, fToString).threw === false;
return attempt_x_esm(function attemptee() {
return methodizedFunctionToString(value);
}).threw === false;
};

@@ -1077,3 +1479,3 @@

var is_function_x_esm_isFunction = function isFunction(value, allowClass) {
if (is_primitive_default()(value)) {
if (is_primitive_x_esm(value)) {
return false;

@@ -1104,7 +1506,8 @@ }

var ZERO = 0;
var to_primitive_x_esm_ZERO = 0;
var ONE = 1;
/* eslint-disable-next-line no-void */
var UNDEFINED = void ZERO;
var UNDEFINED = void to_primitive_x_esm_ZERO;
var NUMBER = 'number';

@@ -1114,3 +1517,3 @@ var STRING = 'string';

var StringCtr = STRING.constructor;
var NumberCtr = ZERO.constructor;
var NumberCtr = to_primitive_x_esm_ZERO.constructor;
/* eslint-disable-next-line compat/compat */

@@ -1144,12 +1547,10 @@

var methodNames = hint === STRING ? toStringOrder : toNumberOrder;
var method;
var result;
for (var i = ZERO; i < orderLength; i += ONE) {
method = ordinary[methodNames[i]];
for (var i = to_primitive_x_esm_ZERO; i < orderLength; i += ONE) {
var method = ordinary[methodNames[i]];
if (is_function_x_esm(method)) {
result = method.call(ordinary);
var result = simple_call_x_esm(method, ordinary);
if (is_primitive_default()(result)) {
if (is_primitive_x_esm(result)) {
return result;

@@ -1230,5 +1631,5 @@ }

hint = obj.hint;
var result = exoticToPrim.call(input, hint);
var result = simple_call_x_esm(exoticToPrim, input, [hint]);
if (is_primitive_default()(result)) {
if (is_primitive_x_esm(result)) {
return result;

@@ -1262,3 +1663,3 @@ }

var to_primitive_x_esm_toPrimitive = function toPrimitive(input, preferredType) {
if (is_primitive_default()(input)) {
if (is_primitive_x_esm(input)) {
return input;

@@ -1293,11 +1694,11 @@ }

var nativeParseInt = parseInt;
/** @type {Function} */
var castNumber = 0 .constructor; // noinspection JSPotentiallyInvalidConstructorUsage
var _ref = '',
charAt = _ref.charAt;
var castNumber = 0 .constructor;
var BAD_CHAR = "\u180E";
var methodizedCharAt = simple_methodize_x_esm(BAD_CHAR.charAt);
var hexRegex = /^[-+]?0[xX]/;
var parse_int_x_esm_test = hexRegex.test;
var parse_int_x_esm_methodizedTest = simple_methodize_x_esm(hexRegex.test);
/**

@@ -1324,7 +1725,7 @@ * This method parses a string argument and returns an integer of the specified

if (charAt.call(str, 0) === "\u180E") {
if (methodizedCharAt(str, 0) === BAD_CHAR) {
return nan_x_esm;
}
return nativeParseInt(str, castNumber(radix) || (parse_int_x_esm_test.call(hexRegex, str) ? 16 : 10));
return nativeParseInt(str, castNumber(radix) || (parse_int_x_esm_methodizedTest(hexRegex, str) ? 16 : 10));
};

@@ -1341,2 +1742,3 @@

var binaryRadix = 2;

@@ -1347,3 +1749,3 @@ var octalRadix = 8;

var to_number_x_esm_castNumber = testCharsCount.constructor;
var pStrSlice = to_number_x_esm_ERROR_MESSAGE.slice;
var methodizedStringSlice = simple_methodize_x_esm(to_number_x_esm_ERROR_MESSAGE.slice);
var binaryRegex = /^0b[01]+$/i;

@@ -1353,6 +1755,6 @@ var RegExpConstructor = binaryRegex.constructor; // Note that in IE 8, RegExp.prototype.test doesn't seem to exist: ie, "test" is

var to_number_x_esm_test = binaryRegex.test;
var to_number_x_esm_methodizedTest = simple_methodize_x_esm(binaryRegex.test);
var isBinary = function isBinary(value) {
return to_number_x_esm_test.call(binaryRegex, value);
return to_number_x_esm_methodizedTest(binaryRegex, value);
};

@@ -1363,3 +1765,3 @@

var isOctal = function isOctal(value) {
return to_number_x_esm_test.call(octalRegex, value);
return to_number_x_esm_methodizedTest(octalRegex, value);
};

@@ -1370,3 +1772,3 @@

var hasNonWS = function hasNonWS(value) {
return to_number_x_esm_test.call(nonWSregex, value);
return to_number_x_esm_methodizedTest(nonWSregex, value);
};

@@ -1377,3 +1779,3 @@

var isInvalidHexLiteral = function isInvalidHexLiteral(value) {
return to_number_x_esm_test.call(invalidHexLiteral, value);
return to_number_x_esm_methodizedTest(invalidHexLiteral, value);
};

@@ -1390,3 +1792,3 @@

var to_number_x_esm_parseBase = function parseBase(value, radix) {
return parse_int_x_esm(pStrSlice.call(value, testCharsCount), radix);
return parse_int_x_esm(methodizedStringSlice(value, testCharsCount), radix);
};

@@ -1661,3 +2063,3 @@

var getMax = function getMax(a, b) {
var calculate_from_index_x_esm_getMax = function getMax(a, b) {
return a >= b ? a : b;

@@ -1684,3 +2086,3 @@ };

var index = to_integer_x_esm(fromIndex);
return index >= 0 ? index : getMax(0, to_length_x_esm(object.length) + index);
return index >= 0 ? index : calculate_from_index_x_esm_getMax(0, to_length_x_esm(object.length) + index);
};

@@ -1687,0 +2089,0 @@

14

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

@@ -5,18 +5,12 @@ /*!

"copywrite": "Copyright (c) 2017",
"date": "2019-08-14T15:31:02.478Z",
"date": "2019-08-20T19:57:08.963Z",
"describe": "",
"description": "Calculates a fromIndex of a given value for an array.",
"file": "calculate-from-index-x.min.js",
"hash": "87dd4ec8b5c8db209e8c",
"hash": "57de5d91d6ef7be50324",
"license": "MIT",
"version": "3.1.0"
"version": "3.1.1"
}
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.calculateFromIndexX=t():e.calculateFromIndexX=t()}(function(){"use strict";var e,t={}.constructor,n=t.prototype,r=t.defineProperty,o=function(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},i=function(){return this};try{return r?r(n,"$$globalThis$$",{get:i,configurable:!0}):n.__defineGetter__("$$globalThis$$",i),e="undefined"==typeof $$globalThis$$?o():$$globalThis$$,delete n.$$globalThis$$,e}catch(e){return o()}}(),function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t,n){"use strict";var r=Object.prototype.toString;if(n(3)()){var o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==r.call(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&i.test(o.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},function(e,t,n){"use strict";
/*!
* is-primitive <https://github.com/jonschlinkert/is-primitive>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Released under the MIT License.
*/e.exports=function(e){return"object"==typeof e?null===e:"function"!=typeof e}},function(e,t,n){"use strict";var r=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 r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n(5);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(4))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"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"),n=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(n))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 r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[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,n){"use strict";n.r(t);var r=function(e){return null==e},o=function(e){if(r(e))throw new TypeError("Cannot call method on ".concat(e));return e},i={}.constructor,c=function(e){return i(o(e))},s=n(0),u=n.n(s),f=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{threw:!1,value:e.apply(this,n)}}catch(e){return{threw:!0,value:e}}};for(var a=f(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===a.threw&&!0===a.value,p=n(1),d=n.n(p),y=n(2),b=n.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)},h=l&&u()(Symbol.toStringTag),w="Cannot convert a Symbol value to a string",S=w.constructor,j=function(e){if(u()(e))throw new TypeError(w);return S(e)},O=function(e){return j(o(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"}],x="",T=$.length,P=0;P<T;P+=1)$[P].es2016&&$[P].string,$[P].es2018&&(x+=$[P].string);var E=x,F=new(0,/none/.constructor)("^[".concat(E,"]+")),M="".replace,N=function(e){return M.call(O(e),F,"")},_=new(0,/none/.constructor)("[".concat(E,"]+$")),k="".replace,C=function(e){return k.call(O(e),_,"")},D=function(e){return N(C(e))},I=new(0,/none/.constructor)("[".concat(E,"]+"),"g"),A=" ".replace,X=function(e){return A.call(D(e),I," ")},q=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,G="".replace,L=function(e,t){return G.call(O(e),q,arguments.length>1?j(t):"")},B=f.constructor,H=f.toString,R=/^class /,U=R.test,V=!1===f(function(){return B('"use strict"; return class My {};')()}).threw,z=function(e){return U.call(R,X(L(H.call(e)," ")))},J=function(e){var t=f(z,e);return!1===t.threw&&t.value},K=function(e,t){return!d()(e)&&(h?function(e,t){return!(V&&!1===t&&J(e)||!1!==f.call(e,H).threw)}(e,g(t)):(!V||!1!==g(t)||!J(e))&&function(e){var t=v(e);return"[object Function]"===t||"[object GeneratorFunction]"===t||"[object AsyncFunction]"===t}(e))},Q="string".constructor,W=(0).constructor,Y=l&&Symbol.toPrimitive,Z=l&&Symbol.prototype.valueOf,ee=["toString","valueOf"],te=["valueOf","toString"],ne=function(e,t){o(e),function(e){if("string"!=typeof e||"number"!==e&&"string"!==e)throw new TypeError('hint must be "string" or "number"')}(t);for(var n,r,i="string"===t?ee:te,c=0;c<2;c+=1)if(n=e[i[c]],K(n)&&(r=n.call(e),d()(r)))return r;throw new TypeError("No default value")},re=function(e,t){if(t){if(e===Q)return"string";if(e===W)return"number"}return"default"},oe=function(e){if(l){if(Y)return function(e,t){var n=e[t];if(!1===r(n)){if(!1===K(n))throw new TypeError("".concat(n," returned for property ").concat(t," of object ").concat(e," is not a function"));return n}}(e,Y);if(u()(e))return Z}},ie=function(e){var t=e.exoticToPrim,n=e.input,r=e.hint,o=t.call(n,r);if(d()(o))return o;throw new TypeError("unable to convert exotic object to primitive")},ce=function(e,t){var n="default"===t&&(b()(e)||u()(e))?"string":t;return ne(e,"default"===n?"number":n)},se=function(e,t){if(d()(e))return e;var n=re(t,arguments.length>1),r=oe(e);return void 0===r?ce(e,n):ie({exoticToPrim:r,input:e,hint:n})},ue=parseInt,fe=(0).constructor,ae="".charAt,le=/^[-+]?0[xX]/,pe=le.test,de=function(e,t){var n=N(j(e));return"᠎"===ae.call(n,0)?NaN:ue(n,fe(t)||(pe.call(le,n)?16:10))},ye=2..constructor,be="Cannot convert a Symbol value to a number".slice,ge=/^0b[01]+$/i,me=ge.test,ve=/^0o[0-7]+$/i,he=new(0,ge.constructor)("[…᠎​￾]","g"),we=/^[-+]0x[0-9a-f]+$/i,Se=function(e,t){return de(be.call(e,2),t)},je=function(e,t){return function(e){return me.call(ge,e)}(t)?e(Se(t,2)):function(e){return me.call(ve,e)}(t)?e(Se(t,8)):null},Oe=function(e,t){var n=je(e,t);if(null!==n)return n;if(function(e){return me.call(he,e)}(t)||function(e){return me.call(we,e)}(t))return NaN;var r=D(t);return r!==t?e(r):null},$e=function e(t){var n=function(e){if(u()(e))throw new TypeError("Cannot convert a Symbol value to a number");return e}(se(t,ye));if("string"==typeof n){var r=Oe(e,n);if(null!==r)return r}return ye(n)},xe=function(e){return e!=e},Te=function(e){return"number"==typeof e&&!1===xe(e)&&e!==1/0&&e!==-1/0},Pe=function(e){var t=$e(e);return 0===t||xe(t)?t:t>0?1:-1},Ee=Math.abs,Fe=Math.floor,Me=function(e){var t=$e(e);return xe(t)?0:0===t||!1===Te(t)?t:Pe(t)*Fe(Ee(t))},Ne=function(e){var t=Me(e);return t<=0?0:t>9007199254740991?9007199254740991:t},_e=function(e){return Te(e)&&Me(e)===e},ke=function(e){return _e(e)&&e>=-9007199254740991&&e<=9007199254740991},Ce=function(e){return ke(e)&&e>=0},De=function(e){return!1===r(e)&&!1===K(e,!0)&&Ce(e.length)};t.default=function(e,t){var n=c(e);if(!1===De(n))return 0;var r,o,i=Me(t);return i>=0?i:(r=0,o=Ne(n.length)+i,r>=o?r:o)}}])});
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.calculateFromIndexX=n():t.calculateFromIndexX=n()}(function(){"use strict";var t,n={}.constructor,e=n.prototype,r=n.defineProperty,o=function(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},i=function(){return this};try{return r?r(e,"$$globalThis$$",{get:i,configurable:!0}):e.__defineGetter__("$$globalThis$$",i),t="undefined"==typeof $$globalThis$$?o():$$globalThis$$,delete e.$$globalThis$$,t}catch(t){return o()}}(),function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=6)}([function(t,n,e){"use strict";var r=Object.prototype.toString;if(e(3)()){var o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/;t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==r.call(t))return!1;try{return function(t){return"symbol"==typeof t.valueOf()&&i.test(o.call(t))}(t)}catch(t){return!1}}}else t.exports=function(t){return!1}},function(t,n,e){"use strict";var r=String.prototype.valueOf,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"string"==typeof t||"object"==typeof t&&(i?function(t){try{return r.call(t),!0}catch(t){return!1}}(t):"[object String]"===o.call(t))}},function(t,n,e){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"object"==typeof t&&null!==t&&(i?function(t){try{return r.call(t),!0}catch(t){return!1}}(t):"[object Date]"===o.call(t))}},function(t,n,e){"use strict";(function(n){var r=n.Symbol,o=e(5);t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,e(4))},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},n=Symbol("test"),e=Object(n);if("string"==typeof n)return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;for(n in t[n]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==n)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,n);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(t,n,e){"use strict";e.r(n);var r=function(t){return null==t},o=function(t){if(r(t))throw new TypeError("Cannot call method on ".concat(t));return t},i={}.constructor,u=function(t){return i(o(t))},c=e(0),s=e.n(c);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var a=function(t){return"object"===f(t)?null===t:"function"!=typeof t},l=e(1),p=e.n(l),y={}.constructor("a"),b="a"===y[0]&&0 in y,d=function(){}.bind,g="function"==typeof d&&function(){var t=null,n=null,e=null,r=[];try{var o=d.apply(function(r,o){return e=this,t=r,n=o,arguments},[r,1]),i=o(2);return 1===o.length&&2===i.length&&1===t&&2===n&&e===r}catch(t){return!1}}()&&function(){var t=null,n=null,e=null,r=[1,2,3],o=function(o,i){return t=o,n=i,e=this,r};try{var i=d.apply(o,[null]),u=new i(1,2);return i.length===o.length&&u===r&&1===t&&2===n&&e!==r}catch(t){return!1}}(),h="".split,v=Math.max,m=a.bind,S=a.call,w=g?m.call(S,h):function(t,n){return h.call(t,n)},j=function(t){return p()(t)?w(t,""):t},O=function(t,n){var e=arguments.length>2?arguments[2]:[];if("string"!=typeof t&&a(t))return e;for(var r=b?t:j(t),o=r.length,i=v(0,n)||0;i<o;i+=1)e[e.length]=t[i];return e};function T(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(e.push(u.value),!n||e.length!==n);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return e}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var x=O.bind,$=O.call,E={},P=E.constructor,F=E.toString,M=function(t,n){return t>=n?t:n},N=function(t){if("function"!=typeof t&&"[object Function]"!==F.apply(t))throw new TypeError("bind called on incompatible "+t)},_=[function(t){return function(){return t.apply(this,O(arguments))}},function(t,n){return function(e){return t.apply(this,O(arguments,n,[e]))}},function(t,n){return function(e,r){return t.apply(this,O(arguments,n,[e,r]))}},function(t,n){return function(e,r,o){return t.apply(this,O(arguments,n,[e,r,o]))}},function(t,n){return function(e,r,o,i){return t.apply(this,O(arguments,n,[e,r,o,i]))}},function(t,n){return function(e,r,o,i,u){return t.apply(this,O(arguments,n,[e,r,o,i,u]))}},function(t,n){return function(e,r,o,i,u,c){return t.apply(this,O(arguments,n,[e,r,o,i,u,c]))}},function(t,n){return function(e,r,o,i,u,c,s){return t.apply(this,O(arguments,n,[e,r,o,i,u,c,s]))}},function(t,n){return function(e,r,o,i,u,c,s,f){return t.apply(this,O(arguments,n,[e,r,o,i,u,c,s,f]))}}],C=function(t){var n=T(t,3),e=n[0],r=n[1],o=n[2],i=M(0,r.length-M(0,o.length-2)),u=_[i],c=u?u(e,i):_[0](e);if(r.prototype){var s=function(){};s.prototype=r.prototype,c.prototype=new s,s.prototype=null}return c},k=function(t,n){var e=t.apply(this,n);return P(e)===e?e:this},I=g?$.bind(x):function(t,n){N(t);var e,r=arguments,o=function(){var o=O(arguments,0,O(r,2));return this instanceof e?k.apply(this,[t,o]):t.apply(n,o)};return e=C([o,t,r])},D=TypeError,A=I.apply,X=I(I.call,A),q=I(A,{}.toString),G=function(t){if("function"!=typeof t&&"[object Function]"!==q(t))throw new D(t+" is not a function");return t},L=function(t,n){return X(G(t),n,O(arguments[2]))},z=function(t){try{return{threw:!1,value:L(t,this,O(arguments,1))}}catch(t){return{threw:!0,value:t}}};for(var B=z(function(){return function(t,n){if(t!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),"function"==typeof Symbol&&s()(Symbol(""))}.bind(void 0)),H=!1===B.threw&&!0===B.value,R=e(2),U=e.n(R),V=function(t){return!!t},J={}.toString,K=function(t){return function(t){if("function"!=typeof t&&"[object Function]"!==L(J,t))throw new TypeError("methodize called on incompatible "+t)}(t),function(){return L(t,arguments[0],O(arguments,1))}},Q=K({}.toString),W=function(t){return null===t?"[object Null]":void 0===t?"[object Undefined]":Q(t)},Y=H&&s()(Symbol.toStringTag),Z="Cannot convert a Symbol value to a string".constructor,tt=function(t){if(s()(t))throw new TypeError("Cannot convert a Symbol value to a string");return Z(t)},nt=function(t){return tt(o(t))},et=[{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"}],rt="",ot=et.length,it=0;it<ot;it+=1)et[it].es2016&&et[it].string,et[it].es2018&&(rt+=et[it].string);var ut=rt,ct=new(0,/none/.constructor)("^[".concat(ut,"]+")),st=K("".replace),ft=function(t){return st(nt(t),ct,"")},at=new(0,/none/.constructor)("[".concat(ut,"]+$")),lt=K("".replace),pt=function(t){return lt(nt(t),at,"")},yt=function(t){return ft(pt(t))},bt=new(0,/none/.constructor)("[".concat(ut,"]+"),"g"),dt=K(" ".replace),gt=function(t){return dt(yt(t),bt," ")},ht=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,vt=K("".replace),mt=function(t,n){return vt(nt(t),ht,arguments.length>1?tt(n):"")},St=z.constructor,wt=K(z.toString),jt=/^class /,Ot=K(jt.test),Tt=!1===z(function(){return St('"use strict"; return class My {};')()}).threw,xt=function(t){return Ot(jt,gt(mt(wt(t)," ")))},$t=function(t){var n=z(xt,t);return!1===n.threw&&n.value},Et=function(t,n){return!a(t)&&(Y?function(t,n){return!(Tt&&!1===n&&$t(t)||!1!==z(function(){return wt(t)}).threw)}(t,V(n)):(!Tt||!1!==V(n)||!$t(t))&&function(t){var n=W(t);return"[object Function]"===n||"[object GeneratorFunction]"===n||"[object AsyncFunction]"===n}(t))},Pt="string".constructor,Ft=(0).constructor,Mt=H&&Symbol.toPrimitive,Nt=H&&Symbol.prototype.valueOf,_t=["toString","valueOf"],Ct=["valueOf","toString"],kt=function(t,n){o(t),function(t){if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"')}(n);for(var e="string"===n?_t:Ct,r=0;r<2;r+=1){var i=t[e[r]];if(Et(i)){var u=L(i,t);if(a(u))return u}}throw new TypeError("No default value")},It=function(t,n){if(n){if(t===Pt)return"string";if(t===Ft)return"number"}return"default"},Dt=function(t){if(H){if(Mt)return function(t,n){var e=t[n];if(!1===r(e)){if(!1===Et(e))throw new TypeError("".concat(e," returned for property ").concat(n," of object ").concat(t," is not a function"));return e}}(t,Mt);if(s()(t))return Nt}},At=function(t){var n=t.exoticToPrim,e=t.input,r=t.hint,o=L(n,e,[r]);if(a(o))return o;throw new TypeError("unable to convert exotic object to primitive")},Xt=function(t,n){var e="default"===n&&(U()(t)||s()(t))?"string":n;return kt(t,"default"===e?"number":e)},qt=function(t,n){if(a(t))return t;var e=It(n,arguments.length>1),r=Dt(t);return void 0===r?Xt(t,e):At({exoticToPrim:r,input:t,hint:e})},Gt=parseInt,Lt=(0).constructor,zt=K("᠎".charAt),Bt=/^[-+]?0[xX]/,Ht=K(Bt.test),Rt=function(t,n){var e=ft(tt(t));return"᠎"===zt(e,0)?NaN:Gt(e,Lt(n)||(Ht(Bt,e)?16:10))},Ut=2..constructor,Vt=K("Cannot convert a Symbol value to a number".slice),Jt=/^0b[01]+$/i,Kt=Jt.constructor,Qt=K(Jt.test),Wt=/^0o[0-7]+$/i,Yt=new Kt("[…᠎​￾]","g"),Zt=/^[-+]0x[0-9a-f]+$/i,tn=function(t,n){return Rt(Vt(t,2),n)},nn=function(t,n){return function(t){return Qt(Jt,t)}(n)?t(tn(n,2)):function(t){return Qt(Wt,t)}(n)?t(tn(n,8)):null},en=function(t,n){var e=nn(t,n);if(null!==e)return e;if(function(t){return Qt(Yt,t)}(n)||function(t){return Qt(Zt,t)}(n))return NaN;var r=yt(n);return r!==n?t(r):null},rn=function t(n){var e=function(t){if(s()(t))throw new TypeError("Cannot convert a Symbol value to a number");return t}(qt(n,Ut));if("string"==typeof e){var r=en(t,e);if(null!==r)return r}return Ut(e)},on=function(t){return t!=t},un=function(t){return"number"==typeof t&&!1===on(t)&&t!==1/0&&t!==-1/0},cn=function(t){var n=rn(t);return 0===n||on(n)?n:n>0?1:-1},sn=Math.abs,fn=Math.floor,an=function(t){var n=rn(t);return on(n)?0:0===n||!1===un(n)?n:cn(n)*fn(sn(n))},ln=function(t){var n=an(t);return n<=0?0:n>9007199254740991?9007199254740991:n},pn=function(t){return un(t)&&an(t)===t},yn=function(t){return pn(t)&&t>=-9007199254740991&&t<=9007199254740991},bn=function(t){return yn(t)&&t>=0},dn=function(t){return!1===r(t)&&!1===Et(t,!0)&&bn(t.length)};n.default=function(t,n){var e=u(t);if(!1===dn(e))return 0;var r,o,i=an(n);return i>=0?i:(r=0,o=ln(e.length)+i,r>=o?r:o)}}])});
//# sourceMappingURL=calculate-from-index-x.min.js.map
{
"name": "calculate-from-index-x",
"version": "3.1.0",
"version": "3.1.1",
"description": "Calculates a fromIndex of a given value for an array.",

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

"dependencies": {
"is-array-like-x": "^2.1.0",
"to-integer-x": "^4.2.0",
"to-length-x": "^4.2.0",
"is-array-like-x": "^2.1.1",
"to-integer-x": "^4.2.1",
"to-length-x": "^4.2.1",
"to-object-x": "^2.2.0"

@@ -68,6 +68,6 @@ },

"@babel/runtime": "^7.5.5",
"@types/jest": "^24.0.17",
"@types/node": "^12.7.1",
"@types/webpack": "^4.32.1",
"@xotic750/eslint-config-recommended": "^1.1.2",
"@types/jest": "^24.0.18",
"@types/node": "^12.7.2",
"@types/webpack": "^4.39.0",
"@xotic750/eslint-config-recommended": "^1.1.5",
"babel-core": "^7.0.0-0",

@@ -80,3 +80,3 @@ "babel-eslint": "^10.0.2",

"cross-env": "^5.2.0",
"eslint": "^6.1.0",
"eslint": "^6.2.1",
"eslint-friendly-formatter": "^4.0.1",

@@ -92,3 +92,3 @@ "eslint-import-resolver-webpack": "^0.11.1",

"eslint-plugin-jest": "^22.15.1",
"eslint-plugin-jsdoc": "^15.8.0",
"eslint-plugin-jsdoc": "^15.8.3",
"eslint-plugin-json": "^1.4.0",

@@ -102,4 +102,4 @@ "eslint-plugin-lodash": "^6.0.0",

"eslint-plugin-switch-case": "^1.1.2",
"jest": "^24.8.0",
"jest-cli": "^24.8.0",
"jest": "^24.9.0",
"jest-cli": "^24.9.0",
"jest-file": "^1.0.0",

@@ -111,3 +111,3 @@ "lodash": "^4.17.15",

"prettier": "^1.18.2",
"rimraf": "^2.6.3",
"rimraf": "^3.0.0",
"source-map-loader": "^0.2.4",

@@ -117,5 +117,5 @@ "strip-ansi": "^5.2.0",

"typescript": "^3.5.3",
"webpack": "^4.39.1",
"webpack": "^4.39.2",
"webpack-bundle-analyzer": "^3.4.1",
"webpack-cli": "^3.3.6",
"webpack-cli": "^3.3.7",
"webpack-global-object-x": "^1.0.0",

@@ -122,0 +122,0 @@ "webpack-merge": "^4.2.1"

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