Thursday, March 8, 2018

.map in JavaScript does not mutate state when introducing changes the way a .forEach does.

Instead, you will get a brand new array with brand new records. The pointers to the old array and old records will not be maintained.

No comments:

Post a Comment