immutable-js-oss / immutable-js

Immutable persistent data collections for Javascript which increase efficiency and simplicity.
https://immutable-js-oss.github.io/immutable-js/
MIT License
37 stars 6 forks source link

how to get next element in immutable List when use map #124

Closed Methuselah96 closed 3 years ago

Methuselah96 commented 4 years ago

From @bonusbb on Thu, 31 Jan 2019 09:37:37 GMT

if const a = new List([new Map({ title: 'first', startTime: '09:00:00', endTime: '12:00:00', complete: true }), new Map({ title: 'second', startTime: '14:00:00', endTime: '16:00:00', complete: false }), ]),

when i use a.map((value,index) => { //HOW TO GET VALUE OF NEXT ELEMENT IN HERE ? })

Copied from original issue: https://github.com/immutable-js/immutable-js/issues/1687

Methuselah96 commented 3 years ago

Question answered in original repo.