stable-position
Generate unique position that can be used to order items without renumbering them.
Install
$ npm install --save stable-position
Usage
const first after between = ; const a = ;const z = ; const x = ; const assert = ; ;
API
first()
returns a position value that is smaller than any other position
before(p)
returns a position value that is smaller than the position represented by p
after(p)
returns a position value that is bigger than the position represented by p
between(p ,q)
return position value that is between p and q
License
MIT © Damian Krzeminski