mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Consistent use (always) of parentheses in arrow functions.
This commit is contained in:
@@ -14,10 +14,10 @@ import compareMultiple from './compareMultiple.js'
|
||||
*/
|
||||
function baseOrderBy(collection, iteratees, orders) {
|
||||
let index = -1
|
||||
iteratees = iteratees.length ? iteratees : [value => value]
|
||||
iteratees = iteratees.length ? iteratees : [(value) => value]
|
||||
|
||||
const result = baseMap(collection, (value, key, collection) => {
|
||||
const criteria = arrayMap(iteratees, iteratee => iteratee(value))
|
||||
const criteria = arrayMap(iteratees, (iteratee) => iteratee(value))
|
||||
return { 'criteria': criteria, 'index': ++index, 'value': value }
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user