mk-pmb

mk-pmb/if-fun-js

Returns the first argument if it is a function (regular, async, generator, …), or your custom fallback value otherwise.

JavaScript
0
0
No license

The `if-fun` project is a utility module that checks if a given argument is a function (including async and generator functions) and returns it; otherwise, it returns a specified fallback value or `undefined` by default. It is designed for JavaScript developers who need a simple way to validate and handle function arguments in their code.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the repos that depend on mk-pmb/if-fun-js

Top contributors

mk-pmb's profile
mk-pmb
2 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet