Organizational Research By

Surprising Reserch Topic

how to javascript arrays sparse


are javascript arrays sparse  using -'javascript,sparse-array'

That is, if I use the current time as an index into the array:

array[Date.getTime()] = value;


will the interpreter instantiate all the elements from 0 to now?  Do different browsers do it differently?

I remember there used to be a bug in the AIX kernel, which would create pseudo-ttys on request, but if you did, say, "echo > /dev/pty10000000000" it would create /dev/pty0, /dev/pty1, .... and then fall over dead.  It was fun at trade shows, but I don't want this to happen to my customers.
    

asked Sep 8, 2015 by rajesh
0 votes
5 views



Related Hot Questions

5 Answers

0 votes
NULL
answered Sep 8, 2015 by rajesh
0 votes
NULL
answered Sep 8, 2015 by rajesh
0 votes
NULL
answered Sep 8, 2015 by rajesh
0 votes
NULL
answered Sep 8, 2015 by rajesh
0 votes
NULL
answered Sep 8, 2015 by rajesh

...