How to sort a an array with objects by property value that could be undefined with TypeScript?

后端 未结 0 1885
灰色年华
灰色年华 2020-12-28 20:14

I have a problem where I want to sort an array of objects by the property value. For example i have this array:

const myArray = [{name: \'Jerry\'}, {name: \'T         


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