📅  最后修改于: 2022-03-11 15:03:41.053000             🧑  作者: Mango
//if its an array of objects
arr.filter((item) => typeof(item.key) === 'number')
//if its an array of values
arr.filter((item) => typeof(item) === 'number')