Skip to content

Commit fa5b765

Browse files
committed
Rename ArrayCursor#each -> forEach
1 parent cb0f25c commit fa5b765

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ This is a major release and breaks backwards compatibility.
273273

274274
- Replaced `ArrayCursor` methods `hasNext` and `hasMore` with getters
275275

276+
- Renamed `ArrayCursor` method `each` to `forEach`
277+
276278
- Graph collection return values now contain `old` and `new` properties when
277279
`returnOld` or `returnNew` options are used
278280

src/cursor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export class ArrayCursor<T = any> {
216216
/**
217217
* TODO
218218
*/
219-
async each(
219+
async forEach(
220220
fn: (value: T, index: number, self: ArrayCursor<T>) => boolean | void
221221
): Promise<boolean> {
222222
let index = 0;

0 commit comments

Comments
 (0)