MCPcopy Index your code
hub / github.com/OneNoteDev/WebClipper / unique

Function unique

src/scripts/highlighting/textHighlighter.js:83–87  ·  view source on GitHub ↗

* Returns array without duplicated values. * @param {Array} arr * @returns {Array}

(arr)

Source from the content-addressed store, hash-verified

81 * @returns {Array}
82 */
83 function unique(arr) {
84 return arr.filter(function (value, idx, self) {
85 return self.indexOf(value) === idx;
86 });
87 }
88
89 /**
90 * Takes range object as parameter and refines it boundaries

Callers 1

textHighlighter.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected