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
|
||||
> Ox.isArray((function() { return arguments; }()))
|
||||
false
|
||||
> Ox.isArray(document.getElementsByTagName('a'))
|
||||
false
|
||||
> Ox.isArray({0: 0, length: 1})
|
||||
false
|
||||
@*/
|
||||
|
@ -144,7 +146,7 @@ Ox.isEqual = function(a, b) {
|
|||
ret = a.global == b.global && a.ignore == b.ignore
|
||||
&& a.multiline == b.multiline && a.source == b.source;
|
||||
} else if (
|
||||
['arguments', 'array', 'object'].indexOf(type) > -1
|
||||
(type == 'arguments' || type == 'array' || type == 'object')
|
||||
&& Ox.len(a) == Ox.len(b)
|
||||
) {
|
||||
ret = true;
|
||||
|
|
Loading…
Reference in a new issue