Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

_.union

/**
* Underscore.js
*
* The _.union() function is used to take n number of arrays 
* and return a new array with the unique terms in all those arrays 
* (union of all array).
**/

import * as _ from 'underscore'
let new_array = _.union( *arrays )
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
1+8 =