I might have written a pretty confusing title but my question is rather simple.
I'm looking for an efficient way to remove an item from an array. But my array is full objects that has been stringified (I'm writing my app on Node.js and I'm using JSON.stringify method). So my array is like this;
"{\"userID\":\"15\",
\"possibleFollowers\":[
{\"followerID\":\"201\",\"friends\":716},
{\"followerID\":\"202\",\"friends\":11887},
{\"followerID\":\"203\",\"friends\":11887}],
\"name\":\"John\",
\"lon\":\"Doe\"}"
My question is on Javascript(or Node). If I wanted to remove the from possibleFollowers with "followerID: 202", how would I be able to do that efficiently?
"possibleFollowers\":[ {\"followerID\":\"201\",\"friends\":716}, {\"followerID\":\"202\",\"friends\":11887}, {\"followerID\":\"203\",\"friends\":11887}],after the removal it should look like this;"possibleFollowers\":[ {\"followerID\":\"201\",\"friends\":716}, {\"followerID\":\"202\",\"friends\":11887} ]