UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

2 lines 415 B
const e=(e,t)=>{if(!Array.isArray(e))return e;let n=t===2?2:1,r=e.slice(0,n);return r.every(e=>typeof e==`number`&&Number.isFinite(e))?r.toSorted((e,t)=>e-t):r},t=(e,t)=>{if(!Array.isArray(e))return[];let n=t===2?2:1;return e.filter(e=>typeof e==`number`&&Number.isFinite(e)).slice(0,n).toSorted((e,t)=>e-t)};export{e as normalizeRangeInputValue,t as normalizeStoredRangeValues}; //# sourceMappingURL=values.mjs.map