const numbers = [1, [2], [3, [4]], 5];
// Using JavaScript
JSON.parse(JSON.stringify(numbers));
// Using Lodash
_.cloneDeep(numbers);
const users = ['John', 'Mike', 'Cole', 'Bekky']
const [a,b, ...others] =users
console.log(a,b, others) // 'John', 'Mike', ['Cole, Bekky']