UNPKG

@minionorg/share

Version:
2 lines (1 loc) 656 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(i){return Object.prototype.toString.call(i)===`[object ${n(e)}]`}}function o(e,i){if(!r("string")(e))throw new TypeError("The parameter type is string");return i!==void 0&&e.length===0?i:e.charAt(0)}t.default=o,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});