Angularjs 如何从ionic 4中的数组中移除项目

Angularjs 如何从ionic 4中的数组中移除项目,angularjs,typescript,ionic4,Angularjs,Typescript,Ionic4,我想删除我从myItemsList中的数组中选择的项目。例如,myItemsList中的第一个数组只有一个项,我想删除它 myItemsList = [["First item"],["2"],["3"],["4"],["5"],["6"],["7"],["8"],["9"],["10"],["11","12"],["13"],["14"]]; //this is my array of arrays in ts file delete(myitems){ } //and t

我想删除我从myItemsList中的数组中选择的项目。例如,myItemsList中的第一个数组只有一个项,我想删除它

 myItemsList = [["First item"],["2"],["3"],["4"],["5"],["6"],["7"],["8"],["9"],["10"],["11","12"],["13"],["14"]]; //this is my array of arrays in ts file

 delete(myitems){


  }    //and this is the function that supposed to delete item.
如果选中,则为[‘第一项’、‘3’、‘12’的数组]

结果:[]、[2]、[4]、[5]、[6]、[7]、[8]、[9]、[10]、[11]、[13]、[14]]

如果之后需要从myItemsList中删除空数组:

myItemsList = myItemsList.filter((items) => items.length);
结果:[[2]、[4]、[5]、[6]、[7]、[8]、[9]、[10]、[11]、[13]、[14]]

myItemsList = myItemsList.filter((items) => items.length);