February 2019
Beginner to intermediate
180 pages
4h 4m
English
Another great option is to use BuckleScript's built-in JavaScript bindings, found in the Js module:
/* BuckleScript's JavaScript bindings */let array = [|"first", "second", "third"|];Js.Array.map(e => e ++ "-mapped", array);
This option has the advantage of not requiring any dependencies in the compiled output. It also has a very familiar API. However, since not all Reason data structures exist in JavaScript, you'll likely be using a standard library. If so, prefer Belt.
Read now
Unlock full access