array-uniq
Advanced tools
Comparing version 2.0.0 to 2.1.0
'use strict'; | ||
module.exports = x => [...new Set(x)]; | ||
const arrayUniq = array => [...new Set(array)]; | ||
module.exports = arrayUniq; |
{ | ||
"name": "array-uniq", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Create an array without duplicates", | ||
@@ -16,6 +16,7 @@ "license": "MIT", | ||
"scripts": { | ||
"test": "xo && ava" | ||
"test": "xo && ava && tsd" | ||
}, | ||
"files": [ | ||
"index.js" | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
@@ -31,5 +32,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"ava": "*", | ||
"xo": "*" | ||
"ava": "^1.4.1", | ||
"tsd": "^0.7.2", | ||
"xo": "^0.24.0" | ||
} | ||
} |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2598
5
19
0
3