ml-array-xy-sort-x

1.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i ml-array-xy-sort-x

Weekly Downloads

100

Version

1.0.2

License

MIT

Unpacked Size

6.57 kB

Total Files

7

Last publish

Collaborators

  • stropitek
  • targos
  • lpatiny
  • mljs-bot