I know they are there and I've used added functions to save on the code size, which makes a big difference when used a lot. That's why I wanted to see if there are some other drawbacks I was not aware of.
On Feb 18, 7:57 am, John Resig <jere...@gmail.com> wrote: > 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?