Hello Friends 👋,
Welcome To Infinitbility! ❤️
1let array1 = [1, 2, 3];2let array2 = [2, 3, 4];34let array3 = array1.concat(array2);5console.log(array3);67/*8 * Output9 * [1, 2, 3, 2, 3, 4]10 */
1let array1 = [1, 2, 3];2let array2 = [2, 3, 4];34let array3 = [...new Set([...array1,...array2])]5console.log(array3);67/*8 * Output9 * [1, 2, 3, 4]10 */
Thanks For Reading…
Follow me on Twitter
Join our email list and get notified about new content
No worries, I respect your privacy and I will never abuse your email.
Every week, on Tuesday, you will receive a list of free tutorials I made during the week (I write one every day) and news on other training products I create.