File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ Js.log("ReScript"->Js.String.startsWith("Re", _))
3535Js.log(Js.String.split("-", "2019-11-10"))
3636Js.log(Js.String.startsWith("Re", "ReScript"))
3737```
38+ ## Js.Xxx2 Modules
39+
40+ Prefer ` Js.Array2 ` over ` Js.Array ` , ` Js.String2 ` over ` Js.String ` , etc. The latters are old modules.
3841
3942## Object
4043
Original file line number Diff line number Diff line change @@ -38,10 +38,7 @@ Js.log(Js.String.startsWith("Re", "ReScript"));
3838
3939## Js.Xxx2 Modules
4040
41- For some modules with data-last argument order (e.g. [ Js.String] ( ./js/string ) ),
42- there currently exists a matching module suffixed with "2" (e.g. [ Js.String2] ( ./js/string-2 ) )
43- that uses data-first argument order.
44- These ` Js.Xxx2 ` modules are non-public API, so their use is discouraged.
41+ Prefer ` Js.Array2 ` over ` Js.Array ` , ` Js.String2 ` over ` Js.String ` , etc. The latters are old modules.
4542
4643## Object
4744
You can’t perform that action at this time.
0 commit comments