Jan 18 meeting notes

Rick Waldron waldron.rick at gmail.com
Fri Jan 20 07:59:35 PST 2012


On Thu, Jan 19, 2012 at 7:53 PM, Andrea Giammarchi <
andrea.giammarchi at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120120/ff9f55c1/attachment.html>


More information about the es-discuss mailing list