On May 14, 2:59 pm, André Fiedler <[email protected]>
wrote:
> If you want to test that a Object is a String, a better way would be:
>
> if( Object.isString() ) ....
>
> or simply
>
> if( typeof Object == 'string' ) ...

True, but my library implements "test" methods for each Native (for
harder to discern ones) and it's nice to have a consistent API. Other
functions (each, map, filter, etc.) that share names perform the same
function, same arity.

Thomas

Reply via email to