Let’s suppose that we have arrays x = ['a', 'b', 'c'] and y. Is there an easy way to move, say, the second element of x, to y? So that in the end, x is ['a', 'c'] and y is ['b'].
Let’s suppose that we have arrays x = [‘a’, ‘b’, ‘c’] and y .
Share
yep, it would look like this:
delete_atwill delete an element with given index from an array it’s called on and return that object