Skip to content

diegoareval/node-utils-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version

Node utils functions

Node js library containing utils or helper functions to solve any need to sort array remove duplicates

Install

You can use yarn or npm.

yarn

yarn add node-utils-package

npm

npm install --save node-utils-package

Usage

  • Simply import node-utils-package
    import {flattenElements} from 'node-utils-package';

    const array = [[[0]], [1], [[[1]]]]
    flattenElements(array)
  • Calculate the factorial of a number
    const {numberFactorial, flattenElements} = require("node-utils-package")

    const array = [[[0]], [1], [[[1]]]]
    console.log(flattenElements(array))

    console.log(numberFactorial(5));
  • Create a validation so that if a string is sent, it will return null

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published