I've done this a few times, I certain like looking at:

if (arg.isNumber())

than looking at

if ($type(arg) == 'number')

Yours is pretty creative.

On Jun 4, 2010, at 11:29 PM, jiggliemon wrote:

> What about having a simple "is" method on all the main types?
> http://jsfiddle.net/jiggliemon/BDEWf/2/
> 
> -Chase

Reply via email to