incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian LeRoux...@brian.io>
Subject Re: `instanceof` considered harmful in cordova-js
Date Fri, 27 Apr 2012 19:45:34 GMT
+1 to that; and, as a practice, we def should be failing noisily
rather than a silent return!

On Fri, Apr 27, 2012 at 12:05 PM, Filip Maj <fil@adobe.com> wrote:
>
>>My vote is typeof for everything but Array and Date, and add some
>>handy-dandy util methods isArray() and isDate() to do the checking with
>>the
>>toString hack().
>
> +1
>

Mime
View raw message