trying to sort table data by using following the code https://github.com/chuvikovd/multi-column-sort, but how can I pass the custom object to the SortArray[T] object. my custom object is like const obj = [{parameter:'firstname', direction: 'ASC'},{parameter:'lastname', direction: 'DESC'}] How can I convert obj to an array like [['firstname':'ASC'],'lastname':'DESC']?
https://stackoverflow.com/questions/66927819/typescript-assign-custom-object-to-any-object April 03, 2021 at 12:48PM
没有评论:
发表评论