MCPcopy
hub / github.com/hundredrabbits/Left / uniq

Function uniq

desktop/sources/scripts/dictionary.js:83–83  ·  view source on GitHub ↗
(a1)

Source from the content-addressed store, hash-verified

81 }
82
83 function uniq (a1) { const a2 = []; for (const id in a1) { if (a2.indexOf(a1[id]) === -1) { a2[a2.length] = a1[id] } } return a2 }
84}
85
86module.exports = Dictionary

Callers 1

DictionaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected