Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #union #lists #javascript
ADD COMMENT
Topic
Name
1+4 =