Installation
Install the package.
SHnpm 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-coreandrescript-coretogether. If you do find a need to have both libraries only open one inbsconfig.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.