--- id: af2170cad53daa0770fabdea title: Mutations isRequired: true challengeType: 5 videoUrl: '' localeTitle: Мутации --- ## Description
Возвращает true, если строка в первом элементе массива содержит все буквы строки во втором элементе массива. Например, ["hello", "Hello"] должен возвращать true, потому что все буквы во второй строке присутствуют в первом, игнорирующем случае. Аргументы ["hello", "hey"] должны возвращать false, потому что строка "hello" не содержит "y". Наконец, ["Alien", "line"] должен возвращать true, потому что все буквы в «строке» присутствуют в «Alien». Не забудьте использовать Read-Search-Ask, если вы застряли. Напишите свой собственный код.
## Instructions
## Tests
```yml tests: - text: 'mutation(["hello", "hey"]) должна возвращать false.' testString: 'assert(mutation(["hello", "hey"]) === false, "mutation(["hello", "hey"]) should return false.");' - text: 'mutation(["hello", "Hello"]) должна возвращать true.' testString: 'assert(mutation(["hello", "Hello"]) === true, "mutation(["hello", "Hello"]) should return true.");' - text: '' testString: 'assert(mutation(["zyxwvutsrqponmlkjihgfedcba", "qrstu"]) === true, "mutation(["zyxwvutsrqponmlkjihgfedcba", "qrstu"]) should return true.");' - text: '' testString: 'assert(mutation(["Mary", "Army"]) === true, "mutation(["Mary", "Army"]) should return true.");' - text: '' testString: 'assert(mutation(["Mary", "Aarmy"]) === true, "mutation(["Mary", "Aarmy"]) should return true.");' - text: '' testString: 'assert(mutation(["Alien", "line"]) === true, "mutation(["Alien", "line"]) should return true.");' - text: 'mutation(["floor", "for"]) должна возвращать true.' testString: 'assert(mutation(["floor", "for"]) === true, "mutation(["floor", "for"]) should return true.");' - text: '' testString: 'assert(mutation(["hello", "neo"]) === false, "mutation(["hello", "neo"]) should return false.");' - text: 'mutation(["voodoo", "no"]) возвращает false.' testString: 'assert(mutation(["voodoo", "no"]) === false, "mutation(["voodoo", "no"]) should return false.");' ```
## Challenge Seed
```js function mutation(arr) { return arr; } mutation(["hello", "hey"]); ```
## Solution
```js // solution required ```