max-diff

0.0.2 • Public • Published

max-diff

maxDiff([2, 1, 3, 5, 4]) = { min: 1, max: 5, diff: 4 }

Description

Find a pair items in a collection with the biggest distance by difference.

Package Sidebar

Install

npm i max-diff

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • ansteh