ヾ(@^▽^@)ノ
🔭 I’m currently working on 91 algorthimn🌱 I’m currently learning psychology👯 I’m looking to collaborate on 91 team. feel free to reach me: [email protected]💬 Ask me about frontend, algorthimn, interview etc
Sign up for your own profile on GitHub, the best place to host code, manage projects, and build software alongside 50 million developers.
Sign up[...new Set(array)] 只能处理原始类型值,对象等复杂引用类型中的数据因为引用的不同而不适用,就需要一个按一定条件去重的方法 请实现 Array.prototype.unique 方法,接受 Array,能够去重引用类型,即如果引用不同仍然需要判断内部值是否相同。