🐛 fix uniq function bug with edge (#1065)
Co-authored-by: gongshun <gongshun@gridsum.com>
This commit is contained in:
parent
387ceb3594
commit
69b6d54e0b
|
|
@ -14,7 +14,7 @@ import { getTargetValue, setCurrentRunningSandboxProxy } from './common';
|
|||
function uniq(array: PropertyKey[]) {
|
||||
return array.filter(function filter(this: PropertyKey[], element) {
|
||||
return element in this ? false : ((this as any)[element] = true);
|
||||
}, {});
|
||||
}, Object.create(null));
|
||||
}
|
||||
|
||||
// zone.js will overwrite Object.defineProperty
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user