The .union() function is used to perform a UNION with the specified collections.

The .union() can handle one to many arguments. Each collection will be joined with the collection from the .from() and duplicates will be removed.

union(array, array, array, ...)
type Collection<T> = T[];
union<T>(collection: Collection<T>, ...collections: Collection<T>[]): jinqJs;
var result  = new jinqJs()
                  .from([15,30,11])       
                  .union([30,15,45,15])
                  .select();

/* result:
        [15,30,11,45] */