From ba383f35b3e6b495417f572f0cda50c748813143 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mathias=20Maa=C3=9F?= <mathias.maass@uni-leipzig.de>
Date: Mon, 1 Apr 2019 17:35:27 +0200
Subject: [PATCH] use es6 every() and some() instead of lodashs

---
 src/extend/pluginValidation.js | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/extend/pluginValidation.js b/src/extend/pluginValidation.js
index 348c14621..2f70d050f 100644
--- a/src/extend/pluginValidation.js
+++ b/src/extend/pluginValidation.js
@@ -3,12 +3,10 @@ import isUndefined from 'lodash/isUndefined';
 import isFunction from 'lodash/isFunction';
 import isObject from 'lodash/isObject';
 import isNull from 'lodash/isNull';
-import some from 'lodash/some';
-import every from 'lodash/every';
 import values from 'lodash/values';
 
 /** */
-export const validatePlugin = plugin => every([
+export const validatePlugin = plugin => [
   checkPlugin,
   checkName,
   checkTarget,
@@ -17,7 +15,7 @@ export const validatePlugin = plugin => every([
   checkMapStateToProps,
   checkMapDispatchToProps,
   checkReducers,
-], check => check(plugin));
+].every(check => check(plugin));
 
 /** */
 const checkPlugin = plugin => isObject(plugin);
@@ -37,7 +35,7 @@ const checkTarget = (plugin) => {
 /** */
 const checkMode = (plugin) => {
   const { mode } = plugin;
-  return some(['add', 'wrap'], s => s === mode);
+  return ['add', 'wrap'].some(s => s === mode);
 };
 
 /** */
@@ -67,5 +65,5 @@ const checkMapDispatchToProps = (plugin) => {
 const checkReducers = (plugin) => {
   const { reducers } = plugin;
   return isUndefined(reducers)
-    || (isObject(reducers) && every(values(reducers), isFunction));
+    || (isObject(reducers) && values(reducers).every(isFunction));
 };
-- 
GitLab