array-filter-unique
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -5,2 +5,5 @@ "use strict"; | ||
function arrayFilterUnique(selector = o => String(o)) { | ||
if (arguments.length > 1) { | ||
throw new Error('array-filter-unique has to be called as a function like `array.filter(arrayFilterUnique(<optional arg>))`'); | ||
} | ||
const seen = {}; | ||
@@ -7,0 +10,0 @@ return (element) => { |
{ | ||
"name": "array-filter-unique", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "JavaScript array.filter() compatible unique filter", | ||
@@ -13,3 +13,3 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">=6" | ||
"node": ">=8" | ||
}, | ||
@@ -36,9 +36,10 @@ "scripts": { | ||
"devDependencies": { | ||
"@sindresorhus/tsconfig": "^0.3.0", | ||
"@types/node": "^11.9.0", | ||
"@typescript-eslint/eslint-plugin": "^1.3.0", | ||
"ava": "^1.3.1", | ||
"del-cli": "^1.1.0", | ||
"eslint-config-xo-typescript": "^0.9.0", | ||
"nyc": "^13.3.0", | ||
"@sindresorhus/tsconfig": "^0.4.0", | ||
"@types/node": "^12.0.7", | ||
"@typescript-eslint/eslint-plugin": "^1.13.0", | ||
"@typescript-eslint/parser": "^1.13.0", | ||
"ava": "^2.1.0", | ||
"del-cli": "^2.0.0", | ||
"eslint-config-xo-typescript": "^0.15.0", | ||
"nyc": "^14.1.1", | ||
"ts-node": "^8.0.2", | ||
@@ -45,0 +46,0 @@ "typescript": "^3.3.3", |
Sorry, the diff of this file is not supported yet
5493
20
11