js-points
Install
npm install @hexlet/points
Usage example
import {
makePoint, getX, getY, toString, quadrant,
} from '@hexlet/points';
const point = makePoint(4, 5);
toString(point); // (4, 5)
getX(point); // 4
getY(point); // 5
quadrant(point); // 1
For more information, see the Full Documentation
This repository is created and maintained by the team and the community of Hexlet, an educational project. Read more about Hexlet (in Russian).