From 6a82f9304c604954bba87d89ccb2b373b54e3d63 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 1 Mar 2021 20:40:53 +0200 Subject: [PATCH 1/2] Remove useless spread (#11) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d656847..a5a3df8 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,3 @@ -const arrayUnion = (...arguments_) => [...new Set([...arguments_.flat()])]; +const arrayUnion = (...arguments_) => [...new Set(arguments_.flat())]; export default arrayUnion; From c9e401d946d70eb46149ad67973c911c6ad2a335 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Tue, 2 Mar 2021 01:41:52 +0700 Subject: [PATCH 2/2] 3.0.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dccaa06..e7f7468 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "array-union", - "version": "3.0.0", + "version": "3.0.1", "description": "Create an array of unique values, in order, from the input arrays", "license": "MIT", "repository": "sindresorhus/array-union",