Socket
Socket
Sign inDemoInstall

array-xy-sort-x

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    array-xy-sort-x

Sort a set of point based on the abscissas values


Version published
Maintainers
1
Install size
4.50 kB
Created

Readme

Source

array-xy-sort-x

NPM version npm download

Sort a set of point based on the abscissas values.

Installation

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

Usage

import sortX from '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

FAQs

Last updated on 07 Oct 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc