jQuery version of YAHOO.lang (isUndefined, isNull, isString etc.)

Posted by Chris S on Stack Overflow See other posts from Stack Overflow or by Chris S
Published on 2009-05-19T10:55:19Z Indexed on 2010/04/04 20:13 UTC
Read the original article Hit count: 193

Filed under:
|
|

Does anyone know of a jQuery plugin that has 'helpers' or extensions like those found in the YAHOO.lang namespace?

I have in mind functions such as:

isNull
isDefined
isString
isFunction

I would also appreciate the same kind of thing for strings and arrays, such as Contains, StartsWith (I know these are easy to write, I'm just looking for a plugin that encompasses them all).

It's not in the YAHOO.lang namespace but also form related extensions- determining a radiobox's value (from the one checked), a form element's type in a friendly name.

Specifically a plugin with fluent API rather than selector based such as

$("input[@type=radio][@checked]")

Again I'm aware they're easy to implement but I don't want to reinvent the wheel.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery