JSFiddle - React, Tailwind, and code Playground

by Alexey

JavaScript

function mergeArray(...x) {
  return x.reduce((q, e) => q.concat(e)).sort((a, b) => a - b);
}


console.log(mergeArray([0, 3, 4, 31], [4, 6, 30]))