1
0
Fork 0
forked from 0x2620/oxjs

fix semicolons

This commit is contained in:
rolux 2014-08-19 10:19:59 +02:00
commit 1b90cc6ac8
12 changed files with 38 additions and 38 deletions

View file

@ -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;
};