From c5688b7180e486436c480e253e0381e6cc8522a3 Mon Sep 17 00:00:00 2001 From: Aaron Stone Date: Thu, 5 Nov 2020 21:52:06 -0700 Subject: [PATCH] Remove unnecessary boolean cast --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index fdb44ff..1f614f1 100644 --- a/index.js +++ b/index.js @@ -57,7 +57,7 @@ function propertyIsUnsafe(target, key) { // Retrieves either a new object or the appropriate target object to mutate. function getDestinationObject(target, options) { - if (options && !!options.mergeWithTarget) { + if (options && options.mergeWithTarget) { return Array.isArray(target) ? firstArrayEntry(target) : target }