lodash-fun

A collection of logic and other functions for use with lodash/fp.

Usage no npm install needed!

<script type="module">
  import lodashFun from 'https://cdn.skypack.dev/lodash-fun';
</script>

README

Lodash-Fun

Some fun utilities, logic functions and stuff that is not included with lodash/fp.

Designed to be used hand in hand with Lodash/fp

Written in TypeScript but usage in JS is perfectly fine. Named this way because I couldn't believe it wasn't taken.

Including

  • Composable logic functions - andWith, orWith, ifElseWith, switchWith
  • hasKeysWith - inspecting object values
  • Object flattening/unflattening
  • deepConform - a powerful async object validation function.

Full TypeDoc documentation can be found here!