U
U
ubbe_lodbroke2020-01-15 18:17:06
css
ubbe_lodbroke, 2020-01-15 18:17:06

How to remove the user element from the userList array?

const user = {name: John, age: 23}

  const userList= [
    {name: Alex, age: 30},
    {name: John, age: 23},
    {name: Max, age: 43}
  ]

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Ankhena, 2019-04-02
@Ankhena

Gradient border sitist.ru/info-gradient-border.htm and just gradients for the background.
What does it have to do with plugins and js in general?

I
Igor, 2020-01-15
@Igor_307

userList.splice(1, 1) //по ключу

A
Alexey, 2020-01-15
@AleksRap

Run through the array, compare objects by keys, and then use the splice method to remove it from the array

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question