add test
This commit is contained in:
parent
43558a55a3
commit
191d7b3099
1 changed files with 3 additions and 1 deletions
|
@ -31,6 +31,8 @@ Ox.isArray <f> Tests if a value is an array
|
||||||
true
|
true
|
||||||
> Ox.isArray((function() { return arguments; }()))
|
> Ox.isArray((function() { return arguments; }()))
|
||||||
false
|
false
|
||||||
|
> Ox.isArray(document.getElementsByTagName('a'))
|
||||||
|
false
|
||||||
> Ox.isArray({0: 0, length: 1})
|
> Ox.isArray({0: 0, length: 1})
|
||||||
false
|
false
|
||||||
@*/
|
@*/
|
||||||
|
@ -144,7 +146,7 @@ Ox.isEqual = function(a, b) {
|
||||||
ret = a.global == b.global && a.ignore == b.ignore
|
ret = a.global == b.global && a.ignore == b.ignore
|
||||||
&& a.multiline == b.multiline && a.source == b.source;
|
&& a.multiline == b.multiline && a.source == b.source;
|
||||||
} else if (
|
} else if (
|
||||||
['arguments', 'array', 'object'].indexOf(type) > -1
|
(type == 'arguments' || type == 'array' || type == 'object')
|
||||||
&& Ox.len(a) == Ox.len(b)
|
&& Ox.len(a) == Ox.len(b)
|
||||||
) {
|
) {
|
||||||
ret = true;
|
ret = true;
|
||||||
|
|
Loading…
Reference in a new issue