diff --git a/client/modules/operation/get-next-current-name.js b/client/modules/operation/get-next-current-name.js index a27e9daa..d2b96545 100644 --- a/client/modules/operation/get-next-current-name.js +++ b/client/modules/operation/get-next-current-name.js @@ -2,7 +2,7 @@ const currify = require('currify'); -const not = currify((array, value) => !~array.indexOf(value)); +const not = currify((array, value) => !array.includes(value)); const notOneOf = currify((a, b) => a.filter(not(b))); module.exports = (currentName, names, removedNames) => { diff --git a/server/prefixer.js b/server/prefixer.js index 3b5f3a95..47675070 100644 --- a/server/prefixer.js +++ b/server/prefixer.js @@ -7,7 +7,7 @@ module.exports = (value) => { if (value.length === 1) return ''; - if (value && !~value.indexOf('/')) + if (value && !value.includes('/')) return '/' + value; return value; diff --git a/server/validate.js b/server/validate.js index e87ce5a5..498cd78e 100644 --- a/server/validate.js +++ b/server/validate.js @@ -47,7 +47,7 @@ module.exports.columns = (type) => { .map(addQuotes) .join(', '); - if (!~all.indexOf(type)) + if (!all.includes(type)) exit(`cloudcmd --columns: can be only one of: ${names}`); };