add Ox.isNodeList
This commit is contained in:
parent
55999d654c
commit
1899f470ee
1 changed files with 10 additions and 0 deletions
|
@ -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`
|
||||
|
|
Loading…
Reference in a new issue