Request: support WebGL's Typed-Arrays for _.isEqual()
Those are: Int8Array, Int16Array, Int32Array, Uint8Array, Uint16Array, Uint32Array, Float32Array but only Float32Array matters right now.
Background: with the emerging WebGL standard (OpenGL for the web, fully supported and endorsed by WebKit, Mozilla and Opera) developers are back to late-90's levels of squeezing every nanosecond they can out of the GPU for (hopefully one day) high-FpS near-real-time rendering.
For batched rendering we need to keep track of commands we sent to GL previously so that no redundant, duplicate GL commands (that would not change the current GL/GPU state) are ever sent -- all GL calls are expensive and GL is a state machine. So we need to memoize as much as possible and sensible in our own JS. Using the outstanding glMatrix library, like most WebGL coders we store our matrices not in JavaScript arrays but in Float32Array vars (as they are ultimately always sent to a GL shader and shouldn't have to be converted needlessly when we can usually work with typed arrays exactly in the same ways as original untyped JavaScript arrays).
Yet right now we can't seem to perform the "optimized deep comparison" of _.isEqual against typed arrays. Am I right? Would be awesome to see support for this in underscore.
Scratch this: _.isEqual(mat4.create(), mat4.create()) returns true as expected, so I'm in fact simply having a bug of my own somewhere here. Thx for the awesome underscore!