JSFiddle - React, Tailwind, and code Playground
by Shang-De You
JavaScript
const ascending = d => d.sort((a, b) => a - b)
const data = [0.26, 0, 0.5, 0.8, 0.13, 0.9]
const result = ascending.call(data)
console.log(result)
by Shang-De You
const ascending = d => d.sort((a, b) => a - b)
const data = [0.26, 0, 0.5, 0.8, 0.13, 0.9]
const result = ascending.call(data)
console.log(result)