問題:
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