Simplify array immutable changes with the new array.with method

Tomasz Ducin
InstructorTomasz Ducin
Share this video with your friends

Social Share Links

Send Tweet
Published 2 months ago
Updated 2 months ago

The new Array.with method gives you an immutable syntax for changing values of an array at a specified index.

Sometimes .map will be more efficient. So, in this lesson we'll compare both methods while replacing an object at a specific index.

~ a month ago

At the end of the video, instead of todos.at(0) it should be todos.at(idx) :)

~ a week ago

these videos are very quiet - I have to turn my computer volume up pretty high to hear anything...

Markdown supported.
Become a member to join the discussionEnroll Today