UNPKG

@esri/calcite-components

Version:

Web Components for Esri's Calcite Design System.

5 lines 362 B
/*! * All material copyright ESRI, All Rights Reserved, unless otherwise specified. * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details. */ const t=(t,a,s)=>Math.max(a,Math.min(t,s)),a=t=>{const a=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return a?Math.max(0,(a[1]?a[1].length:0)-(a[2]?+a[2]:0)):0};export{t as c,a as d}