1
0
mirror of https://github.com/yldio/copilot.git synced 2024-09-21 13:53:51 +03:00

remove lodash.isarray dependency

This commit is contained in:
Sérgio Ramos 2016-12-09 14:54:47 +00:00
parent 07ee904c96
commit cc8a2f28ed
2 changed files with 1 additions and 3 deletions

View File

@ -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",

View File

@ -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;
}