Fundamentals/Reading and Updating Elements
← PrevNext →
Given an array, an index, and a new value, set the element at that index to the new value and return the modified array. Return the array unchanged if the index is out of bounds.