Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #533 +/- ##
==========================================
+ Coverage 98.86% 99.44% +0.58%
==========================================
Files 140 141 +1
Lines 4147 4181 +34
Branches 892 922 +30
==========================================
+ Hits 4100 4158 +58
+ Misses 47 23 -24
🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
Pull request overview
Adds arrFlatMap (with polyArrFlatMap) to @nevware21/ts-utils, extending the Array helper surface with an ES5-compatible flatMap implementation and public exports.
Changes:
- Added
arrFlatMaphelper andpolyArrFlatMappolyfill implementation. - Introduced
ArrFlatMapCallbackFntype and exported it from the main index. - Added common tests, updated polyfills entry/export wiring, and adjusted bundle size thresholds/docs.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| lib/src/array/flatMap.ts | New arrFlatMap wrapper + polyArrFlatMap implementation. |
| lib/src/array/callbacks.ts | Adds ArrFlatMapCallbackFn type for flatMap callbacks. |
| lib/src/index.ts | Exports arrFlatMap and ArrFlatMapCallbackFn publicly. |
| lib/src/polyfills.ts | Registers flatMap in prototype polyfill installation and exports polyArrFlatMap. |
| lib/src/array/flatten.ts | Updates docs to reference arrFlatMap for map-then-flatten workflows. |
| lib/test/src/common/array/flatMap.test.ts | Adds coverage for arrFlatMap, polyArrFlatMap, and export wiring. |
| lib/test/bundle-size-check.js | Increases bundle size thresholds for ES5 minified artifacts. |
| .size-limit.json | Updates size-limit thresholds for built ES5/ES6 modules. |
| docs/feature-backlog.md | Updates backlog entry related to arrFlatMap (currently with a content issue). |
nevware21-bot
previously approved these changes
Mar 26, 2026
Contributor
nevware21-bot
left a comment
There was a problem hiding this comment.
Approved by nevware21-bot
nevware21-bot
previously approved these changes
Mar 26, 2026
Contributor
nevware21-bot
left a comment
There was a problem hiding this comment.
Approved by nevware21-bot
- Add `arrFlatMap` and `polyArrFlatMap` implementations with one-level flatten behavior for mapped values. - Introduce `ArrFlatMapCallbackFn` type for array and array-like callback signatures. - Export `arrFlatMap` and the callback type from public index and polyfills entry points.
nevware21-bot
approved these changes
Mar 29, 2026
Contributor
nevware21-bot
left a comment
There was a problem hiding this comment.
Approved by nevware21-bot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
arrFlatMapandpolyArrFlatMapimplementations with one-level flatten behavior for mapped values.ArrFlatMapCallbackFntype for array and array-like callback signatures.arrFlatMapand the callback type from public index and polyfills entry points.