tinyhelp

1.5.0 • Public • Published

tinyhelp

Travis build Code Coverage

Install like this: npm i tinyhelp

Then either import everything:

import * as helpMe from "tinyhelp";
helpMe.sort([5,2,6,3,5]); // => [2,3,5,5,6]
helpMe.flatten([1,[2,[3]]]) // => [1,2,3]

Or use named imports:

import { sort } from "tinyhelp";
sort([5,2,6,3,5]) // => [2,3,5,5,6]

This is a tiny library of javascript functions, currently comprising:

  • deepCopy
  • flatten
  • isPrime
  • sieveOfE (sieve of Eratosthenes)
  • peek
  • sort
  • isEqual
  • inPlaceShuffle
  • regularShuffle

Readme

Keywords

Package Sidebar

Install

npm i tinyhelp

Weekly Downloads

8

Version

1.5.0

License

MIT

Unpacked Size

15.8 kB

Total Files

14

Last publish

Collaborators

  • johnptmcdonald