Installation

Install the package.

SH
npm i rescript-fp-core

Update your projects bsconfig.json file.

JSON
{ "bs-dependencies": [ "rescript-fp-core" ], "bs-flags": [ "-open FpCore" ] }

Note: It is recommended to not use rescript-fp-core and rescript-core together. If you do find a need to have both libraries only open one in bsconfig.json.

Requirements

This library uses the latest features from ECMAScript 2023 for array functions. This is supported on the latest versions of all major browsers or Node 20+. If you need to support older browsers or older versions of Node you will have to use a polyfill.