All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.utils.run-if-fn.js Maven / Gradle / Ivy

Go to download

A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.

The newest version!
'use client';
const isFunction = (value) => typeof value === "function";
const runIfFn = (valueOrFn, ...args) => isFunction(valueOrFn) ? valueOrFn(...args) : valueOrFn;

export { runIfFn };




© 2015 - 2025 Weber Informatics LLC | Privacy Policy