MCPcopy
hub / github.com/autoNumeric/autoNumeric / arrayUnique

Method arrayUnique

src/AutoNumericHelper.js:1487–1489  ·  view source on GitHub ↗

* Merge all the given arrays by keeping only unique elements, and return an array with de-duplicated values. * cf. http://stackoverflow.com/a/27664971/2834898 * * @param {...array} arrays * @returns {[*]}

(...arrays)

Source from the content-addressed store, hash-verified

1485 * @returns {[*]}
1486 */
1487 static arrayUnique(...arrays) {
1488 return [...new Set([].concat(...arrays))];
1489 }
1490
1491 /**
1492 * Merge all the given Maps by keeping only unique elements, and return a new Map with de-duplicated keys.

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected