Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 393 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 393 Bytes

footer-pagination-exercise

Installation

Clone / download the .zip and run npm install.

Running tests

Run npm test from terminal.

Executing the function from terminal

  • run ts-node-start in terminal
  • copy-paste the import statement below, hit enter, and start typing js
import { pagination } from './index';
console.log(pagination(4, 5, 1, 0));
$ 1 ... [4] 5