array-complement:返回唯一值的数组,该值是所提供数组的对称差

时间:2021-04-30 19:10:16
【文件属性】:
文件名称:array-complement:返回唯一值的数组,该值是所提供数组的对称差
文件大小:6KB
文件格式:ZIP
更新时间:2021-04-30 19:10:16
JavaScript 数组补码 返回唯一值的数组,该唯一值是提供的数组的。 安装 npm install array-complement bower install array-complement 用法 const arrayComplement = require ( 'array-complement' ) ; console . log ( arrayComplement ( [ 'foo' , 'bar' ] , [ 'bar' ] ) ) ; // ['foo'] console . log ( arrayComplement ( [ 'foo' , 'bar' , 'qux' ] , [ 'qux' , 'baz' ] , [ 'thud' , 'norf' , 'bar' ] ) ) ; // ['foo','baz','thud','norf'] 测试 npm test 执照 麻省理工学院
【文件预览】:
array-complement-master
----.jshintrc(500B)
----.gitignore(1KB)
----.jscsrc(118B)
----package.json(1KB)
----LICENSE.md(1KB)
----array-complement.js(982B)
----.travis.yml(88B)
----CHANGELOG.md(151B)
----README.md(574B)
----.gitattributes(52B)
----bower.json(554B)
----test()
--------array-complement.js(582B)
----.editorconfig(427B)

网友评论