Replies: 1 comment
-
恭喜进入Stage 1! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
[...new Set(array)]
只能处理原始类型值,对象等复杂引用类型中的数据因为引用的不同而不适用,就需要一个按一定条件去重的方法 ——Array.prototype.unique()
,来应付诸如数据库查出的数据(唯一 ID)或 UI 中用户操作生成的一些冗杂数据。Beta Was this translation helpful? Give feedback.
All reactions