Skip to content

paratagas/js-snippets

Repository files navigation

JS-snippets

Useful Javascript functions, patterns, data-structures processing examples


Documentation:

Documentation


Code test coverage:

Code test coverage


Covered topics:

  • array
  • function
  • number
  • object
  • set
  • string

Actions:

Setup

$ npm i

Play in sandbox (write your code in "./sandbox.js" and watch result)

$ npm run sandbox

Test

$ npm test

Test and open report (./coverage/lcov-report/index.html)

$ npm run test:report

Lint (./lib and ./test)

$ npm run lint

Lint and fix problems

$ npm run lint:fix

Create documentation (./docs)

$ npm run jsdoc

Create documentation and open it (./docs/index.html)

$ npm run jsdoc:report

License

MIT

Releases

No releases published

Packages

No packages published