micro-js

micro-js/maybe-over

Maps a collection of things that may be functions over a value

JavaScript
0
0
No license

maybe‑over is a tiny utility that takes a value and a collection (array or object) of items, invokes any items that are functions with the given value, and leaves non‑function items unchanged, returning the mixed results. It’s useful for front‑end developers who need to apply optional transformation functions (e.g., in React component rendering) without checking each element’s type.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of micro-js/maybe-over

Account's avatar
Test whether a given value is a function.
Account's avatar
tap-producing test harness for node and browsers

Support the repos that depend on this repository

Top contributors

ashaffer's profile
ashaffer
2 contributions

Recent events

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

No events yet