Message from JavaScript discussions

December 2017

— Thank you very much


I have a question can you update an element of array using destructuring like you can update object properties ??

— I'm not sure what you mean

— Show me an object property example?

— Okay

— {
prop: something

— With array you can add element
[...ary, element]

— I need to update the element of array

— Yeah.... heh

— Couldn't find anything on that

— Ramda!

— insert(index, value, list) -> new list