Skip to main content
Active reading.
Source Link
Peter Mortensen
  • 31.3k
  • 22
  • 109
  • 132

You can achieve it simply using underscoreJSUnderscore.js's => uniq

array3 = _.uniq(array1.concat(array2)):

console.log(array3)

array3 = _.uniq(array1.concat(array2))

console.log(array3)

itIt will print ["Vijendra", "Singh", "Shakya"].

You can achieve it simply using underscoreJS => uniq

array3 = _.uniq(array1.concat(array2))

console.log(array3)

it will print ["Vijendra", "Singh", "Shakya"]

You can achieve it simply using Underscore.js's => uniq:

array3 = _.uniq(array1.concat(array2))

console.log(array3)

It will print ["Vijendra", "Singh", "Shakya"].

Source Link
Mohideen bin Mohammed
  • 19.7k
  • 11
  • 118
  • 127

You can achieve it simply using underscoreJS => uniq

array3 = _.uniq(array1.concat(array2))

console.log(array3)

it will print ["Vijendra", "Singh", "Shakya"]