Content
View differences
Updated by Alexander Coles 12 days ago
## Scope
Bucket C of [#65621](https://community.openproject.org/work_packages/65621). Replace lodash set / dedup / diff helpers.
## Call sites (~33)
`flatten` 7 · `without` 7 · `uniq` 6 · `uniqBy` 5 · `difference` 4 · `differenceBy` 4
## Strategy
`flatten` → `.flat()`; `uniq` → `[...new Set(arr)]`; `without` / `difference` → `filter(x => !set.has(x))`; `uniqBy` / `differenceBy` → `Map` / `Set` keyed by the iteratee. Preserve order and null-safety.
## Branch
`code-maintenance/OP-19544-remove-lodash-set-dedup` off `dev`.
Bucket C of [#65621](https://community.openproject.org/work_packages/65621). Replace lodash set / dedup / diff helpers.
## Call sites (~33)
`flatten` 7 · `without` 7 · `uniq` 6 · `uniqBy` 5 · `difference` 4 · `differenceBy` 4
## Strategy
`flatten` → `.flat()`; `uniq` → `[...new Set(arr)]`; `without` / `difference` → `filter(x => !set.has(x))`; `uniqBy` / `differenceBy` → `Map` / `Set` keyed by the iteratee. Preserve order and null-safety.
## Branch
`code-maintenance/OP-19544-remove-lodash-set-dedup` off `dev`.