MCPcopy Create free account
hub / github.com/Wisembly/basil.js / _union

Function _union

src/basil.set.js:29–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 return o;
28 },
29 _union = function () {
30 var args = arguments[0],
31 allElements = [],
32 uniqElements = [];
33
34 for (var i = 0, length = args.length; i < length; i++)
35 allElements = allElements.concat(args[i]);
36
37 for (i = 0, length = allElements.length; i < length; i++)
38 if (!_contains(uniqElements, allElements[i]))
39 uniqElements.push(allElements[i]);
40
41 return uniqElements;
42 },
43 _difference = function () {
44 arguments = arguments[0];
45 var firstArray = arguments[0], otherArrays = [], diffArray = [];

Callers 1

BasilSetFunction · 0.85

Calls 1

_containsFunction · 0.85

Tested by

no test coverage detected