# Фільтрування масиву

[**Ця задача на Codewars: List Filtering**](https://www.codewars.com/kata/list-filtering/train/javascript)

Тут ви створите функцію, яка отримує список невід'ємних цілих чисел і рядків, а повертає новий список тільки з числами, відфільтрованими від рядків.

```javascript
filter_list([1,2,'a','b']) == [1,2]
filter_list([1,'a','b',0,15]) == [1,0,15]
filter_list([1,2,'aasf','1','123',123]) == [1,2,123]
```

*Перевірте рішення автотестами на сторінці самої задачі (і **Test**, і **Attempt**).*\
*Про всяк випадок, ось* [*інструкція з Codewars*](/zero/tutorials/codewars.md)*.*

{% hint style="warning" %}
**Увага**! На Сodewars можна самостійно перевірити, чи правильно працює код. А нюанси стилю можна зрозуміти, порівнюючи своє рішення із чужими. Тому **волонтери не рев'ювають задачі з Сodewars.**
{% endhint %}

*Виникли питання або труднощі?* [*Зверніться за допомогою до Ш++.*](/zero/arrangements/support.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://shpp.gitbook.io/zero/tutorials/codewars/list-filtering.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
