Use more ES2015.

This commit is contained in:
John-David Dalton
2017-01-02 16:45:31 -06:00
parent 2900cfd288
commit 1a1e462f80
17 changed files with 45 additions and 59 deletions

View File

@@ -10,8 +10,8 @@ import baseEach from './_baseEach.js';
* else `false`
*/
function baseEvery(collection, predicate) {
var result = true;
baseEach(collection, function(value, index, collection) {
let result = true;
baseEach(collection, (value, index, collection) => {
result = !!predicate(value, index, collection);
return result;
});