Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 548 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 548 Bytes

Good Phone Numbers

A simple JavaScript program to sort a bunch of phone numbers, based on how "good" they are. Numbers are scored based on three criteria:

  • The amount of occurences of a single digit within the number
  • The amount of adjacent digits within a number (up to a set maximum)
  • The existence of patterns within the number

Check example.html for an example on how to use it.

Instructions

To install dependencies: npm install

To run tests: npm test

License

Licensed under MIT License.