return-found

An npm package to return the first truthy value returned from predicate after being passed each item in a collection

Usage no npm install needed!

<script type="module">
  import returnFound from 'https://cdn.skypack.dev/return-found';
</script>

README

An npm package to return the first truthy value returned from predicate after being passed each item in a collection

Similar to javascript's native find for arrays except it returns the value predicate returns, as opposed to the collection item