UNPKG

@minionorg/share

Version:
2 lines (1 loc) 730 B
(function(t,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(t=typeof globalThis<"u"?globalThis:t||self,n(t.index={}))})(this,function(t){"use strict";function n(e){return e.charAt(0).toUpperCase()+e.slice(1)}function r(e){if(!e)throw new SyntaxError("type is must");return function(o){return Object.prototype.toString.call(o)===`[object ${n(e)}]`}}function u(e,o,i){if(!r("Array")(e))throw new TypeError("The list must be array");if(i===void 0)e.push(o);else if(r("Number")(i))e.splice(i,0,o);else throw new TypeError("The index must be number");return e}t.default=u,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});