- The native
map, filter, reduce and forEach will generally be faster when used on arrays that contain nothing but numerical values.
- If you plan to use
formatCurrency method with node.js for anything else then the en-US locale you'll have to make sure to properly setup https://github.com/unicode-org/full-icu-npm as node.js itself only ships with the en-US locale by default unless specifically build with more locales.
- Do not use the
is* methods of this package inside the Node.js VM as the results could be misleading.
- The
pluralize method does not support irregular plurals. Check blakeembrey/pluralize if you need support for those.
npm install @smartholdem/utils
yarn add @smartholdem/utils
pnpm add @smartholdem/utils
npm run test -- --coverage
pnpm run test -- --coverage
git clone git@github.com:SmartHoldem/utils.git
npm install
npm run bench
pnpm install
pnpm run bench