1.0.2 • Published 3 years ago

ml-array-xy-sort-x v1.0.2

Weekly downloads
137
License
MIT
Repository
github
Last release
3 years ago

array-xy-sort-x

NPM version npm download

Sort a set of point based on the abscissas values.

Installation

$ npm install --save ml-array-xy-sort-x

Usage

import sortX from 'ml-array-xy-sort-x';

const x = [6, 5, 4, 3, 2, 1, 0, -1];
const y = [17, 16, 15, 14, 13, 12, 11, 10];
sortX({ x, y });

/* result -> {
    x: [-1, 0, 1, 2, 3, 4, 5, 6],
    y: [10, 11, 12, 13, 14, 15, 16, 17]
} */

License

MIT

1.0.2

3 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.2.5

5 years ago

0.2.4

6 years ago

0.0.1-security

6 years ago