Skip to content
Snippets Groups Projects
Commit 5eff046f authored by mcmlxxix's avatar mcmlxxix
Browse files

Fixed object methods and properties counter, because as we all know, sparse...

Fixed object methods and properties counter, because as we all know, sparse arrays dont exist....................
parent 3edd9127
No related branches found
No related tags found
No related merge requests found
......@@ -154,7 +154,7 @@ function shuffle(array)
for(var j, x, i = array.length; i; j = parseInt(Math.random() * i), x = array[--i], array[i] = array[j], array[j] = x);
return array;
}
function countSparseArray(array)
function countObjectMethodsAndPropertiesBecauseThereIsNoSuchThingAsASparseArrayInJavascriptAndWeDontWantToConfuseAnyone(array)
{
var count=0;
for(var i in array) count++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment