declarative-js

_declarative-js_ is modern JavaScript library, that helps to: - tackle array transformation with built in JavaScript array api (e.g. `array.filter(toBe.unique())`), - provide a type-level solution for representing optional values instead of null referen

Usage no npm install needed!

<script type="module">
  import declarativeJs from 'https://cdn.skypack.dev/declarative-js';
</script>

README

What is declarative-js

declarative-js is modern JavaScript library, that helps to:

  • tackle array transformation with built in JavaScript array api (e.g. array.filter(toBe.unique())),
  • provide a type-level solution for representing optional values instead of null references.

Why declarative-js?

  • performance (link to benchmarks)
  • ability to use with built in api (js array)
  • it is written in typescript. All functions provides great type inference
  • declarative code instead of imperative
  • reduces boilerplate code providing performant and tested solutions
  • comprehensive documentation (link)
  • Target version of javascript is ES5
  • Internet Explorer 11 compatible

npm version Build Status Coverage Status Language grade: JavaScript

Install

npm i declarative-js --save

Documentation

All documentation can be found here: link

License

MIT