JSFiddle - React, Tailwind, and code Playground

by Vladymyr Shevchuk

JavaScript

function compare(arr) {
  const [tempArr] = arr;
  
  console.log(tempArr === arr);
  return tempArr;
}

console.log(compare([[1,4,5], 2, 3]));