@tsparticles/engine
Version:
Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.
22 lines (21 loc) • 514 B
JavaScript
export function isBoolean(arg) {
return typeof arg === "boolean";
}
export function isString(arg) {
return typeof arg === "string";
}
export function isNumber(arg) {
return typeof arg === "number";
}
export function isFunction(arg) {
return typeof arg === "function";
}
export function isObject(arg) {
return typeof arg === "object" && arg !== null;
}
export function isArray(arg) {
return Array.isArray(arg);
}
export function isNull(arg) {
return arg === null || arg === undefined;
}