@bchar/a-to-bdeprecated

A JavaScript library for functional data transformation.

Usage no npm install needed!

<script type="module">
  import bcharAToB from 'https://cdn.skypack.dev/@bchar/a-to-b';
</script>

README

(a -> b)

A JavaScript library for functional data transformation.

Build Status npm version dependencies

npm install @bchar/a-to-b

Why (a -> b)?

  • Ability to partially apply all functions, allowing you to write smaller, cleaner code.
  • Restrict functions to one type of data.
  • Leverage type separation into a more interesting interface, such as A.map and O.map.
  • Provide useful functions for handling unwanted values.
  • Ensure correctness of transformations, not allowing references to be mutated.

A benefit of this approach is that (a -> b) will have no trouble adding functions for new types in the future, like Map or Set.

Documentation

Refer to the API documentation.