Closed shravan20 closed 12 months ago
This pull request introduces changes to the code style rules and adds a new utility function. The code style alterations favor double quotes over single ones and disable several TypeScript-specific linting rules. A new utility function, isAnyPropertyTrue
, is introduced in the ArrayUtils
module and used in sample.ts
.
File | Summary |
---|---|
.prettierrc.js , .eslintrc.json |
Code style rules have been updated. Double quotes are now preferred over single ones, and several TypeScript-specific linting rules have been disabled. |
lib/.../sample.ts |
A new import statement has been added for the isAnyPropertyTrue function from the ArrayUtils module. This function is then used and its result logged to the console. |
lib/utility/ArrayUtils/index.d.ts |
A new utility function, isAnyPropertyTrue , has been added. It takes an array and a mapper function as arguments, filters out falsy values, and returns the result. |
🐇💻
"In the land of code where the shadows lie,
Double quotes rise, while semicolons die.
A function new, truth it does seek,
In the heart of arrays, where secrets may leak.
Celebrate these changes, for they bring us light,
In the endless tunnel of coding night." 🌙✨
Summary by CodeRabbit
isAnyPropertyTrue
in theArrayUtils
module. This function checks if any property in an array object is true based on a provided mapper function.sample.ts
to demonstrate the usage of the newisAnyPropertyTrue
function from theArrayUtils
module.