@minionorg/share
Version:
2 lines (1 loc) • 602 B
JavaScript
(function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.index={}))})(this,function(e){"use strict";function t(n,i,u){if(i<0)throw new RangeError("offset cannot be negative");if(u<0)throw new RangeError("maxWith cannot be negative");if(n===null)return null;if(i>n.length)return"";if(n.length>u){const l=Math.min(i+u,n.length);return n.substring(i,l)}else return n.substring(i)}e.default=t,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});