7 lines
158 B
JavaScript
7 lines
158 B
JavaScript
/**
|
|
* Check if the value is a zero value string like "0px" or "0%"
|
|
*/
|
|
const isZeroValueString = (v) => /^0[^.\s]+$/.test(v);
|
|
|
|
export { isZeroValueString };
|