UNPKG

@ark-ui/react

Version:

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

6 lines (4 loc) 190 B
'use client'; const isFunction = (value) => typeof value === "function"; const runIfFn = (valueOrFn, ...args) => isFunction(valueOrFn) ? valueOrFn(...args) : valueOrFn; export { runIfFn };