From cc8a2f28ed5f1c086cf8ed69bd396ee562ec57d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Fri, 9 Dec 2016 14:54:47 +0000 Subject: [PATCH] remove lodash.isarray dependency --- ui/package.json | 1 - ui/src/components/row/size-apply.js | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/package.json b/ui/package.json index d0bbdc2a..83a41431 100644 --- a/ui/package.json +++ b/ui/package.json @@ -18,7 +18,6 @@ "lodash.first": "^3.0.0", "lodash.flatten": "^4.4.0", "lodash.get": "^4.4.2", - "lodash.isarray": "^4.0.0", "lodash.isfunction": "^3.0.8", "lodash.isstring": "^4.0.1", "lodash.isundefined": "^3.0.1", diff --git a/ui/src/components/row/size-apply.js b/ui/src/components/row/size-apply.js index 07baedfa..9e0166fd 100644 --- a/ui/src/components/row/size-apply.js +++ b/ui/src/components/row/size-apply.js @@ -1,4 +1,3 @@ -const isArray = require('lodash.isarray'); const isString = require('lodash.isstring'); /** @@ -19,7 +18,7 @@ module.exports = (size, prop, value) => { return value; } - if (isArray(prop) && (prop.indexOf(size) >= 0)) { + if (Array.isArray(prop) && (prop.indexOf(size) >= 0)) { return value; }