UNPKG

@extra-array/index-range.min

Version:

Gets index range of part of array.

1 lines 948 B
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).array_indexRange=e()}}(function(){return function(){return function e(n,t,r){function o(i,u){if(!t[i]){if(!n[i]){var d="function"==typeof require&&require;if(!u&&d)return d(i,!0);if(f)return f(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var l=t[i]={exports:{}};n[i][0].call(l.exports,function(e){return o(n[i][1][e]||e)},l,l.exports,e,n,t,r)}return t[i].exports}for(var f="function"==typeof require&&require,i=0;i<r.length;i++)o(r[i]);return o}}()({1:[function(e,n,t){"use strict";function r(e,n=0){return n<0?Math.max(e.length+n,0):Math.min(n,e.length)}n.exports=function(e,n=0,t=e.length){return[n=r(e,n),t=Math.max(n,r(e,t))]}},{}]},{},[1])(1)});