37
rated 0 times
[
42]
[
5]
/ answers: 1 / hits: 18522
/ 10 Years ago, wed, june 25, 2014, 12:00:00
I can't use .push() on a Float32Array, I get an error, so I tried to add it like this :
myarray = new Float32Array() ;
myarray.push = function()
{
for( var i in arguments )
{
this[this.length] = arguments[i] ;
}
} ;
But it does not work. I do not get errors, but my array's values are all 0.
Why ?
More From » arrays