mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Ensure each is converted to forEach when used in a ternary operation.
Former-commit-id: ff42e367f9987726fd561037337081c63c7a5100
This commit is contained in:
1
build.js
1
build.js
@@ -2806,6 +2806,7 @@
|
||||
.replace(matchFunction(source, 'each'), '')
|
||||
.replace(/^ *lodash\._each *=.+\n/gm, '')
|
||||
.replace(/\beach(?=\(collection)/g, 'forOwn')
|
||||
.replace(/(\?\s*)each(?=\s*:)/g, '$1forEach')
|
||||
.replace(/\beach(?=\(\[)/g, 'forEach');
|
||||
}
|
||||
// modify `_.contains`, `_.every`, `_.find`, and `_.some` to use the private `indicatorObject`
|
||||
|
||||
Reference in New Issue
Block a user