add Ox.isNodeList

This commit is contained in:
rolux 2014-09-22 15:30:22 +02:00
parent 55999d654c
commit 1899f470ee

View file

@ -252,6 +252,16 @@ Ox.isNaN = function(value) {
return value !== value;
};
/*@
Ox.isNodeList <f> Tests if a value is a nodelist
(value) -> <b> True is the value is a nodelist
> Ox.isNodeList(document.getElementsByTagName('a'))
true
@*/
Ox.isNodeList = function(value) {
return Ox.typeOf(value) == 'nodelist';
};
/*@
Ox.isNull <f> Tests if a value is `null`
(value) -> <b> True if the value is `null`