Skip to content

Commit

Permalink
remove: array-uniq dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
hayzamjs committed Feb 8, 2023
1 parent a32502e commit 99fd6c4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions lib/charset.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
var arrayUniq = require('array-uniq');

function Charset() {
this.chars = '';
}
Expand Down Expand Up @@ -55,7 +53,7 @@ Charset.prototype.setcapitalization = function(capitalization) {

Charset.prototype.removeDuplicates = function() {
var charMap = this.chars.split('');
charMap = arrayUniq(charMap);
charMap = [...new Set(charMap)]
this.chars = charMap.join('');
}

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"node": "*"
},
"dependencies": {
"array-uniq": "1.0.2",
"randombytes": "2.0.3"
},
"devDependencies": {
Expand Down

0 comments on commit 99fd6c4

Please sign in to comment.