Skip to content

Commit

Permalink
test iterator with spread
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuspoehls committed Apr 29, 2024
1 parent eb215c8 commit 8e049df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/arr.js
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,10 @@ test.skip('for in', () => {
})

test('Symbol.iterator', () => {
expect([
...Arr.from([1, 2, 3, 4])
]).toEqual([1, 2, 3, 4])

const arr = Arr.from([1, 2, 3, 4])

const iterator = arr[Symbol.iterator]()
Expand Down

0 comments on commit 8e049df

Please sign in to comment.