fix semicolons
This commit is contained in:
parent
4fbfc139b4
commit
1b90cc6ac8
12 changed files with 38 additions and 38 deletions
|
|
@ -311,7 +311,7 @@ Ox.max <f> Returns the maximum value of a collection
|
|||
Ox.max = function(collection) {
|
||||
var ret, values = Ox.values(collection);
|
||||
if (values.length < Ox.STACK_LENGTH) {
|
||||
ret = Math.max.apply(null, values)
|
||||
ret = Math.max.apply(null, values);
|
||||
} else {
|
||||
ret = values.reduce(function(previousValue, currentValue) {
|
||||
return Math.max(previousValue, currentValue);
|
||||
|
|
@ -334,7 +334,7 @@ Ox.min <f> Returns the minimum value of a collection
|
|||
Ox.min = function(collection) {
|
||||
var ret, values = Ox.values(collection);
|
||||
if (values.length < Ox.STACK_LENGTH) {
|
||||
ret = Math.min.apply(null, values)
|
||||
ret = Math.min.apply(null, values);
|
||||
} else {
|
||||
ret = values.reduce(function(previousValue, currentValue) {
|
||||
return Math.min(previousValue, currentValue);
|
||||
|
|
@ -507,6 +507,7 @@ Ox.some <f> Tests if one or more elements of a collection meet a given condition
|
|||
false
|
||||
@*/
|
||||
Ox.some = function(collection, iterator) {
|
||||
// FIXME: use forEach and break!
|
||||
return Ox.filter(Ox.values(collection), iterator || Ox.identity).length > 0;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue