Answers for "get union of two lists javascript"

0

get union of two lists javascript

var a = [34, 35, 45, 48, 49];
var b = [48, 55];
var union = [...new Set([...a, ...b])];
console.log(union);
Posted by: Guest on May-07-2021

Code answers related to "get union of two lists javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language