mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 00:27:50 +00:00
Remove semicolons.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user