(arr, type)
| 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') { |