Closed shravan20 closed 11 months ago
This update introduces a suite of array manipulation utilities, refactors logging, and reorganizes test files. The new functions enhance the codebase's functionality and maintainability, while the updated logging and test file structure improve debugging and testing efficiency.
File | Summary |
---|---|
lib/sample.ts |
Updated import statement for utility function and replaced console.log with consola.info . |
lib/tests/ArrayUtils/test.spec.ts |
Added test cases and functions related to array manipulation. |
lib/utility/ArrayUtils/index.ts |
Introduced several utility functions for array manipulation with altered signatures. |
mocha.opts |
Changed the file path pattern for recursive test file inclusion to reflect the new directory structure. |
🐇💻
Code refined, tests aligned,
With each change, progress we find.
In arrays' dance, solutions unwind,
A rabbit's work, in code entwined. 🎉
Summary by CodeRabbit
New Features:
lib/utility/ArrayUtils/index.ts
includingisAnyMatching
,isAnyMatchingLazy
,fillArray
,filterFalsy
,filter
,filterNegate
,findFirstMatching
,getHeadN
, andgetTailN
.Refactor:
lib/sample.ts
to use the newisAnyMatching
function.console.log
statements withconsola.info
for better logging.Test:
lib/tests/ArrayUtils/test.spec.ts
with new test cases for the added array manipulation functions.Chore:
Relates to: https://github.com/shravan20/flare/issues/11