filter in typescript got error of '(string | null)[]' is not assignable

后端 未结 0 1353
别那么骄傲
别那么骄傲 2020-12-29 10:55

I have an array of object, one of the property has a null value, I used filter to remove it, but typescript give me warning null is not assignable? since filter will never r

相关标签:
回答
  • 消灭零回复
提交回复
热议问题