mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(cloudcmd) lint
This commit is contained in:
parent
d6674aed3e
commit
3bac819760
14 changed files with 21 additions and 19 deletions
|
|
@ -58,7 +58,7 @@ module.exports.findObjByNameInArr = (array, name) => {
|
|||
|
||||
if (!Array.isArray(array))
|
||||
throw Error('array should be array!');
|
||||
|
||||
|
||||
if (typeof name !== 'string')
|
||||
throw Error('name should be string!');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue