podium-sort
Sorts an array of numbers putting the highest numbers in the middle.
Installation
npm install --save podium-sort
Usage
const podiumSort = ; const input = 1 2 3 4 5;const output = ; ;
Providing a mapper:
const podiumSort = ; const input = value: 1 value: 2 value: 3 value: 4 value: 5 ;const output = ; ;