mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Consistent parens usage for arrow functions with body.
This commit is contained in:
2
cond.js
2
cond.js
@@ -30,7 +30,7 @@ import arrayMap from './.internal/arrayMap.js'
|
||||
function cond(pairs) {
|
||||
const length = pairs == null ? 0 : pairs.length
|
||||
|
||||
pairs = !length ? [] : arrayMap(pairs, pair => {
|
||||
pairs = !length ? [] : arrayMap(pairs, (pair) => {
|
||||
if (typeof pair[1] != 'function') {
|
||||
throw new TypeError('Expected a function')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user