array-uniq:创建一个没有重复的数组

时间:2021-05-12 09:14:43
【文件属性】:
文件名称:array-uniq:创建一个没有重复的数组
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-12 09:14:43
JavaScript 数组唯一 创建一个没有重复的数组 安装 $ npm install array-uniq 用法 import arrayUniq from 'array-uniq' ; arrayUniq ( [ 1 , 1 , 2 , 3 , 3 ] ) ; //=> [1, 2, 3] arrayUniq ( [ 'foo' , 'foo' , 'bar' , 'foo' ] ) ; //=> ['foo', 'bar'] Tidelift帮助维护人员实现开源的可持续发展,同时为公司提供帮助有关其依赖项的安全性,维护和许可的保证。
【文件预览】:
array-uniq-main
----index.test-d.ts(113B)
----.gitattributes(19B)
----.github()
--------funding.yml(46B)
--------security.md(179B)
--------workflows()
----test.js(231B)
----license(1KB)
----index.d.ts(344B)
----.npmrc(19B)
----.editorconfig(175B)
----.gitignore(23B)
----index.js(74B)
----readme.md(698B)
----package.json(678B)

网友评论