Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2a680a3

Browse filesBrowse files
committed
Fix reference to oddSquares.
The example code says `evenSquares` when the sequence defined and the given result correspond to `oddSquares`.
1 parent d3d4ba7 commit 2a680a3
Copy full SHA for 2a680a3

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ Once the sequence is used, it performs only the work necessary. In this
216216
example, no intermediate arrays are ever created, filter is only called
217217
twice, and map is only called once:
218218

219-
console.log(evenSquares.last()); // 49
219+
console.log(oddSquares.last()); // 49
220220

221221
Lazy Sequences allow for the efficient chaining of sequence operations, allowing
222222
for the expression of logic that can otherwise be very tedious:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.