问题:
I have an array that I've created in TypeScript and it has a property that I use as a key.我有一个在 TypeScript 中创建的数组,它有一个用作键的属性。 If I have that key, how can I remove an item from it?如果我有那把钥匙,我怎样才能从中删除一个项目?
解决方案:
参考一: https://en.stackoom.com/question/12ADe参考二: https://stackoom.com/question/12ADe