Extra function calls sure - plus there's really no need for those
methods, they're already a part of JavaScript.

typeof FOO === "string"
typeof FOO === "number"
typeof FOO === "boolean"

--John



On Tue, Feb 17, 2009 at 11:53 PM, pbcomm <pbc...@gmail.com> wrote:
>
> This might be a stupid question, but I have to ask ...
> What is the reason for not having functions like isString, isNumber,
> isBoolean, etc? Is it just because that would create extra function
> calls?
>

Reply via email to