fomatable_string.js 444 B

123
  1. !function(require, directRequire){
  2. "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.FormatableString=void 0;class FormatableString extends String{format(...t){const e=t[0];let r=this;return"[object Array]"===Object.prototype.toString.call(e)?(e.forEach(t=>{r=r.replace("%s",t)}),r):(t.forEach(t=>{r=r.replace("%s",t)}),""+r)}}exports.FormatableString=FormatableString;
  3. }(require("licia/lazyImport")(require), require)