PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.4
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.4
1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 trunk 1.2.0 All 47 releases
fluent-cart / assets / chunks / Str.js

Str.js in FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler 1.6.4, at assets/chunks/Str.js

2 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 class r{static capitalize(t){var i;return((i=t==null?void 0:t.charAt(0))==null?void 0:i.toUpperCase())+(t==null?void 0:t.slice(1))}static camel(t,i="_"){return t.split(i).map((a,e)=>e===0?a.toLowerCase():r.capitalize(a.toLowerCase())).join("")}static kebab(t){return r.snake(t,"-")}static dotCase(t){return r.snake(t,".")}static snake(t,i="_"){return t?t.replace(/[\s._-]+/g,i).replace(/([a-z])([A-Z])/g,`$1${i}$2`).toLowerCase():""}static replaceFirst(t,i,a){return t?t.replace(new RegExp(i,"i"),a):""}static studly(t,i=" "){return t?t.split(i).map(a=>r.capitalize(a.toLowerCase())).join(""):""}static headline(t){return t?t.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[-_]/g," ").replace(/\s+/g," ").trim().split(" ").map(i=>r.capitalize(i)).join(" "):""}static contains(t,i){return i=Array.isArray(i)?i:[i],i.some(a=>t.includes(a))}static startsWith(t,i){return i=Array.isArray(i)?i:[i],i.some(a=>t.startsWith(a))}static endsWith(t,i){return i=Array.isArray(i)?i:[i],i.some(a=>t.endsWith(a))}static limit(t,i,a="..."){return t.length>i?t.slice(0,i)+a:t}static objectToString(t){const i=[];if(typeof t=="object"&&t.join===void 0)for(const a in t)i.push(r.objectToString(t[a]));else if(typeof t=="object"&&t.join!==void 0)for(const a in t)i.push(r.objectToString(t[a]));else typeof t=="function"||typeof t=="string"&&i.push(t);return i.join("<br />")}}export{r as S};
2