Skip to content

Commit 781dba1

Browse files
committed
Use (RescriptCore.)Array instead of Js.Array2 in pipe docs
1 parent 04878f1 commit 781dba1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pages/docs/manual/latest/pipe.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ You'd use them like this:
108108
<CodeTab labels={["ReScript", "JS Output"]}>
109109

110110
```res example
111-
let result = Js.Array2.filter(
112-
Js.Array2.map([1, 2, 3], a => a + 1),
111+
let result = Array.filter(
112+
Array.map([1, 2, 3], a => a + 1),
113113
a => mod(a, 2) == 0
114114
)
115115
@@ -133,8 +133,8 @@ This looks much worse than the JS counterpart! Clean it up visually with pipe:
133133

134134
```res example
135135
let result = [1, 2, 3]
136-
->Js.Array2.map(a => a + 1)
137-
->Js.Array2.filter(a => mod(a, 2) == 0)
136+
->Array.map(a => a + 1)
137+
->Array.filter(a => mod(a, 2) == 0)
138138
139139
asyncRequest()->setWaitDuration(4000)->send
140140
```

0 commit comments

Comments
 (0)