我可能写了一个相当混乱的标题,但我的问题很简单。
我正在寻找一种从数组中删除项目的有效方法。但是我的数组是已被字符串化的完整对象(我正在 Node.js 上编写我的应用程序并且我正在使用JSON.stringify方法)。所以我的数组是这样的;
"{\"userID\":\"15\",
\"possibleFollowers\":[
{\"followerID\":\"201\",\"friends\":716},
{\"followerID\":\"202\",\"friends\":11887},
{\"followerID\":\"203\",\"friends\":11887}],
\"name\":\"John\",
\"lon\":\"Doe\"}"
我的问题是关于 Javascript(或 Node)。如果我想用“followerID:202”从可能的Followers 中删除,我怎样才能有效地做到这一点?