Skip to content

Instantly share code, notes, and snippets.

View Sudmota's full-sized avatar

Eduardo Mota Sudmota

  • Farfetch
  • Porto, Portugal
View GitHub Profile
const mergeSortObj = (arr, param) => {
if (arr.length < 2)
return arr;
const middle = parseInt(arr.length / 2);
const [left, right] = [arr.slice(0, middle), arr.slice(middle, arr.length)]
return mergeObj(mergeSortObj(left, param), mergeSortObj(right, param), param);
}

Keybase proof

I hereby claim:

  • I am sudmota on github.
  • I am sudmota (https://keybase.io/sudmota) on keybase.
  • I have a public key ASCkQ2--kRyKcGsxelXdI84GGid6AhOpJvqV29yywrfzKAo

To claim this, I am signing this object: