UNPKG
fannypack-v5
Version:
latest (5.0.0-rc.7)
5.0.0-rc.7
5.0.0-rc.0
An accessible, composable, and friendly React UI Kit
github.com/fannypackui
fannypackui/fannypack
fannypack-v5
/
src
/
utils
/
bindFns.ts
4 lines
(3 loc)
•
117 B
text/typescript
View Raw
1
2
3
4
export
const
bindFns
= (
...
fns
:
Array
<
Function
>
) =>
(
...
args
:
any
) =>
{ fns.
forEach
(
(
fn
) =>
fn &&
fn
(...args)); };