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", _))
35
35
Js.log(Js.String.split("-", "2019-11-10"))
36
36
Js.log(Js.String.startsWith("Re", "ReScript"))
37
37
```
38
+ ## Js.Xxx2 Modules
39
+
40
+ Prefer ` Js.Array2 ` over ` Js.Array ` , ` Js.String2 ` over ` Js.String ` , etc. The latters are old modules.
38
41
39
42
## Object
40
43
Original file line number Diff line number Diff line change @@ -38,10 +38,7 @@ Js.log(Js.String.startsWith("Re", "ReScript"));
38
38
39
39
## Js.Xxx2 Modules
40
40
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.
45
42
46
43
## Object
47
44
You can’t perform that action at this time.
0 commit comments