Quick JS Exercises

Solutions for intersting quick excercises from everywhere.

Sorting

Sort Objects: Sort a data array of objects according to an order criteria array.

Sort Primitives: Sort an array of primitive types according to an order criteria array.

Count Duplicate Characters: Count the number of duplicates of distinct case-insensitive alphabetic characters and numeric digits.

Count Duplicate Primitives: Count the number of duplicates of distinct primitives in an array.

Development Workflow

$ yarn test folder/app     # TDD with Unit Tests for the folder/app
$ yarn test:coverage       # TDD Unit Test coverage
$ yarn start folder/app    # Runs the program folder/app