From 3237de7c03c4de370ff76e019d5e847168ea5c10 Mon Sep 17 00:00:00 2001 From: Leonid Nikiforenko Date: Wed, 16 Aug 2017 19:36:04 +0300 Subject: [PATCH] Use includes from `lodash` instead of a native one --- src/makeConfiguration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/makeConfiguration.js b/src/makeConfiguration.js index 2e3a2d6..cc3169c 100644 --- a/src/makeConfiguration.js +++ b/src/makeConfiguration.js @@ -26,7 +26,7 @@ export default (userConfiguration = {}) => { throw new Error('"allowMultiple" property value must be a boolean.'); } - if (name === 'handleNotFoundStyleName' && !['throw', 'log', 'ignore'].includes(value)) { + if (name === 'handleNotFoundStyleName' && !_.includes(['throw', 'log', 'ignore'], value)) { throw new Error('"handleNotFoundStyleName" property value must be "throw", "log" or "ignore".'); }