Remove semicolons.

This commit is contained in:
John-David Dalton
2017-02-04 23:50:10 -08:00
parent f3a8e55e70
commit 6cb3460fce
452 changed files with 4261 additions and 4261 deletions

16
some.js
View File

@@ -1,6 +1,6 @@
import arraySome from './.internal/arraySome.js';
import baseSome from './.internal/baseSome.js';
import isIterateeCall from './.internal/isIterateeCall.js';
import arraySome from './.internal/arraySome.js'
import baseSome from './.internal/baseSome.js'
import isIterateeCall from './.internal/isIterateeCall.js'
/**
* Checks if `predicate` returns truthy for **any** element of `collection`.
@@ -16,15 +16,15 @@ import isIterateeCall from './.internal/isIterateeCall.js';
* else `false`.
* @example
*
* some([null, 0, 'yes', false], Boolean);
* some([null, 0, 'yes', false], Boolean)
* // => true
*/
function some(collection, predicate, guard) {
const func = Array.isArray(collection) ? arraySome : baseSome;
const func = Array.isArray(collection) ? arraySome : baseSome
if (guard && isIterateeCall(collection, predicate, guard)) {
predicate = undefined;
predicate = undefined
}
return func(collection, predicate);
return func(collection, predicate)
}
export default some;
export default some