Server IP : 162.213.251.212 / Your IP : 3.149.234.13 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/allssztx/www/easybuyer/node_modules/array-uniq/ |
Upload File : |
# array-uniq [![Build Status](https://travis-ci.org/sindresorhus/array-uniq.svg?branch=master)](https://travis-ci.org/sindresorhus/array-uniq) > Create an array without duplicates It's already pretty fast, but will be much faster when [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) becomes available in V8 (especially with large arrays). ## Install ``` $ npm install --save array-uniq ``` ## Usage ```js const arrayUniq = require('array-uniq'); arrayUniq([1, 1, 2, 3, 3]); //=> [1, 2, 3] arrayUniq(['foo', 'foo', 'bar', 'foo']); //=> ['foo', 'bar'] ``` ## License MIT © [Sindre Sorhus](https://sindresorhus.com)