MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / uniqueArray

Function uniqueArray

src/pages/Workspace/BluePrint.jsx:205–213  ·  view source on GitHub ↗
(arr, type)

Source from the content-addressed store, hash-verified

203 return false;
204 }
205 const uniqueArray = (arr, type) => {
206 const hash = {};
207 let temp = []
208 temp = arr.reduce(function (item, next) {
209 hash[next[type]] ? '' : hash[next[type]] = true && item.push(next);
210 return item
211 }, [])
212 return temp
213 }
214 const getSetNodeProperty = (id, type) => {
215 const result = {}
216 if (type === 'element' || type === 'interActive') {

Callers 1

analysisNodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected