4 ms·
JS engines have both sparse and dense representations for arrays and array instances switch from one to another when you insert and delete elements. Details are
by wolf550e 10y ago
JS engines have both sparse and dense representations for arrays and array instances switch from one to another when you insert and delete elements. Details are of course implementation defined.