Skip to content

ycarooliveira/utils

 
 

Repository files navigation

@teteu/utils

npm (scoped)

✨ Library to commonly used cross-projects utilities methods ✨

Run

npm install @teteu/utils --save

Usage

const utils = require('@teteu/utils');

utils.random(10, 20); // should return a random number between 10 and 20

Contribute

Feel free to contribute. Check if we have open issues or request your utility method. Your code here is very welcome 🤝🤝

Methods Docs

Arrays

Method What It Does Parameters Return
uniqueElements Returns an array with unique elements (array: any[]) {any[]}
groupBy Returns an array grouped by the given key (array: T[], key: keyof T) {Record<string, T[]>}

About

✨ Library to commonly used cross-projects utilities methods ✨

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 56.2%
  • TypeScript 43.8%