Answer the question
In order to leave comments, you need to log in
How to exclude repetitions in an array by a certain parameter?
There is an array:
[
{
"id": 1,
"text": "Привет!"
},
{
"id": 2,
"text": "Как дела?"
},
{
"id": 1,
"text": "Привет!"
},
{
"id": 3,
"text": "Что делаешь?"
},
{
"id": 2,
"text": "Как дела?"
},
{
"id": 1,
"text": "Привет!"
},
{
"id": 4,
"text": "Как здоровье?"
}
]
[
{
"id": 1,
"text": "Привет!"
},
{
"id": 2,
"text": "Как дела?"
},
{
"id": 3,
"text": "Что делаешь?"
},
{
"id": 4,
"text": "Как здоровье?"
}
]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question