Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

array-xy-max-merge

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-xy-max-merge

Merge abscissa values on similar ordinates and keeps the abscissa with bigger ordinate value

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

array-xy-max-merge

NPM version npm download

Merge abscissa values on similar ordinates and keeps the abscissa with bigger ordinate value.

Installation

$ npm install --save array-xy-max-merge

Usage

import maxMerge from 'array-xy-max-merge';

const points = {
    x: [100.001, 100.002, 200.01, 200.02, 300.0001, 300.0002],
    y: [10, 11, 20, 21, 30, 31]
};

const merged = maxMerge(points, {groupWidth: 0.010001});
/*
merged.x -> [100.002, 200.02, 300.0002];
merged.y -> [21, 41, 61];
*/

License

MIT

FAQs

Package last updated on 25 Jul 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc