max-diff
v0.0.2
Published
maxDiff([2, 1, 3, 5, 4]) = { min: 1, max: 5, diff: 4 }
Downloads
1
Readme
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.