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

View File

@@ -1,5 +1,5 @@
import baseEach from './baseEach.js';
import isArrayLike from '../isArrayLike.js';
import baseEach from './baseEach.js'
import isArrayLike from '../isArrayLike.js'
/**
* The base implementation of `map`.
@@ -10,13 +10,13 @@ import isArrayLike from '../isArrayLike.js';
* @returns {Array} Returns the new mapped array.
*/
function baseMap(collection, iteratee) {
let index = -1;
const result = isArrayLike(collection) ? Array(collection.length) : [];
let index = -1
const result = isArrayLike(collection) ? Array(collection.length) : []
baseEach(collection, (value, key, collection) => {
result[++index] = iteratee(value, key, collection);
});
return result;
result[++index] = iteratee(value, key, collection)
})
return result
}
export default baseMap;
export default baseMap