On Sun, Jul 19, 2015 at 10:05 PM, Ron Waldon <[email protected]> wrote: > We've seen a new pattern in ES5 and continued now with ES2015: > > - Array.isArray() > - Number.isNumber() > - Object.isObject() > - etc...
I can only find the first in this list. > Perhaps this pattern just needs to be continued for all types, including the > TypedArrays (if not already being considered). I personally like this > pattern because it doesn't change typeof, and it provides an less-verbose > alternative, and it is able to be polyfilled because it's an API addition > and not a syntax change. Note https://lists.w3.org/Archives/Public/public-script-coord/2013JulSep/thread.html#msg105 where this was discussed previously and not really met with acceptance. -- https://annevankesteren.nl/ _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

