@minionorg/share
Version:
2 lines (1 loc) • 825 B
JavaScript
(function(n,r){typeof exports=="object"&&typeof module<"u"?r(exports):typeof define=="function"&&define.amd?define(["exports"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.index={}))})(this,function(n){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}function o(e){if(!e)throw new SyntaxError("type is must");return function(t){return Object.prototype.toString.call(t)===`[object ${r(e)}]`}}function u(e,t){if(!o("string")(e))throw new TypeError("The parameter type is string");return t!==void 0&&e.length===0?t:e.charAt(0)}const i=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function s(e){const t=u(e).charCodeAt(0);return"\\u"+i[t>>12&15]+i[t>>8&15]+i[t>>4&15]+i[t&15]}n.default=s,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});