securityos/node_modules/framer-motion/dist/es/animation/utils/is-none.mjs

13 lines
308 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import { isZeroValueString } from '../../utils/is-zero-value-string.mjs';
function isNone(value) {
if (typeof value === "number") {
return value === 0;
}
else if (value !== null) {
return value === "none" || value === "0" || isZeroValueString(value);
}
}
export { isNone };