On Thu, Jan 19, 2012 at 7:53 PM, Andrea Giammarchi <
andrea.giammar...@gmail.com> wrote:

> give typeof its role and leave Array.isArray, Object.isObject,
> Function.isFunction ... Whaveter.isWhatever it's easy to implement logic :-)


When I first read the meeting notes and saw the reference to
Object.isObject(), I also immediately thought of these as complimentary to
the existing Array.isArray() and it matches what developers want and are
using:



jQuery [1]:

jQuery.isArray()
jQuery.isFunction()
jQuery.isNumeric()
jQuery.isPlainObject() (ie. an object created with {} or new Object())



underscore.js [2]:

_.isArray()
_.isBoolean()
_.isDate()
_.isFunction()
_.isNaN()
_.isNull()
_.isNumber()
_.isRegExp()
_.isString()
_.isUndefined()



Mootools [3]:

typeOf()

.. which is similar to Object.type()



YUI [4]:

Y.Lang.isArray()
Y.Lang.isBoolean()
Y.Lang.isDate()
Y.Lang.isFunction()
Y.Lang.isNull()
Y.Lang.isNumber()
Y.Lang.isObject()
Y.Lang.isString()
Y.Lang.isUndefined()

And a "type" function:
Y.Lang.type()



Ext/Sencha:

Ext.isArray()
Ext.isBoolean()
Ext.isDate()
Ext.isDefined()
Ext.isFunction()
Ext.isNumber()
Ext.isObject()
Ext.isString()



[1] http://trends.builtwith.com/javascript/jQuery
[2] http://trends.builtwith.com/javascript/Underscore.js
[3] http://trends.builtwith.com/javascript/MooTools
[4] http://trends.builtwith.com/javascript/YUI3
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to