millermedeiros / amd-utils

modular JavaScript utilities written in the AMD format
http://millermedeiros.github.com/amd-utils
142 stars 11 forks source link

- Use the static version of native indexOf #45

Closed ThFischer closed 12 years ago

ThFischer commented 12 years ago
millermedeiros commented 12 years ago

do you have any info about browser support for the static version of Array.indexOf? It doesn't seem to be part of ES5 / standardized: http://es5.github.com/#x15.4.3

PS: the current version uses the native method for most browsers, which is a really good thing, see es5 compat table for browser support.

ThFischer commented 12 years ago

You are right, ECMA Script doesn't specify it. All current browsers and Rhino have an implementation but not Node.js 0.6.14 :-(

millermedeiros commented 12 years ago

closing it since it isn't a standard and it doesn't seem to be available on Chrome as well (just tested it on Canary). current version already performs well. cheers.