{ "name": "Katya", "names": [ "Vasilisa", "Vasya", "Katya", "Yarik", "Jack", "Jake", "Givi", "Maxim", "Yaroslava", "Katya", "Vladimir", "Finn", "Willie", "Katya", "Casimir", "Ibrahim" ], "orders": [ { "id": 1, "status": "success", "title": "Refrigerator", "price": "$54,000" }, { "id": 2, "status": "fail", "title": "Microwave", "price": "$5,000" }, { "id": 3, "status": "delivering", "title": "Kebab", "price": "$540" }, { "id": 4, "status": "delivering", "title": "Pizza", "price": "$655" }, { "id": 5, "status": "success", "title": "Playstation 5", "price": "$154,000" }, { "id": 6, "status": "success", "title": "Loaf with fish", "price": "$540,000" } ] }
1.
{{filter names name}}
2.
{{#filter names name}} {{add @index 1}}. {{this}} {{else}} No such name was found {{/filter}}
3.
{{filter names "Vasilisa"}}
4.
{{filter names 4 prop="length"}}
5.
{{#filter names 4 prop="length"}} {{add @index 1}}. {{this}} {{else}} There were no such names {{/filter}}
6.
{{#filter names 4 prop="length" limit=2}} {{add @index 1}}. {{this}} {{else}} There were no such names {{/filter}}
7.
{{#filter names name as |name id|}} ID: {{id}}; Имя: {{name}} {{else}} No such name was found {{/filter}}
8.
{{JSONstringify (filter orders "success" prop="status")}}
9.
{{#filter orders "delivering" prop="status"}} {{add @index 1}}. {{title}} {{/filter}}
10.
{{#filter orders "Playstation 5" prop="title"}} Order number: {{id}} Item: {{title}} Price: {{price}} {{else}} You haven't bought Playstation 5 yet {{/filter}}