mirror of
https://github.com/yldio/copilot.git
synced 2024-12-29 05:10:05 +02:00
remove lodash.isarray dependency
This commit is contained in:
parent
07ee904c96
commit
cc8a2f28ed
@ -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",
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user