T
T
T4-1002015-12-29 19:13:34
underscore.js
T4-100, 2015-12-29 19:13:34

Why is only the last element kept in the array when iterating over an array in js?

jsfiddle.net/arg6gcxk - why is only the last element left in the subarray when populating a multidimensional array?
In each subarray cow, fish, flowers - only the last header is preserved, and it is necessary that all elements of the subarray be in the arrays cow, fihs and flowers

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arman, 2015-12-29
@isawillbenice

And if so?
jsfiddle.net/2tLLkrLL

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question