JavaScript
27
Вклад в тег
if (0 < something && something < 90) {
doSomething();
}
const arr = ['Hello', 'World', 'John Doe', 'Hakuna Matata', 'Mosakusa'];
let input = 'da'
let arrInput = input.split(''); // ['d', 'a']
arr.filter(str => arrInput.every(char => str.includes(char))); // []
input = 'ao', arrInput = input.split('');
arr.filter(str => arrInput.every(char => str.includes(char))); // ['Mosakusa']
if (notAlreadyExecuted) { ... } // do something