package.lib.is.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of utils Show documentation
Show all versions of utils Show documentation
A collection of utility functions for animations.
export const isNumber = (value) => typeof value === "number";
export const isString = (value) => typeof value === "string";
export const isEasingGenerator = (easing) => typeof easing === "object" &&
Boolean(easing.createAnimation);
export const isCubicBezier = (easing) => Array.isArray(easing) && isNumber(easing[0]);
export const isEasingList = (easing) => Array.isArray(easing) && !isNumber(easing[0]);
//# sourceMappingURL=is.js.map