There’s a nifty method to sort an array of objects based on several properties: var data = _.sortBy(array_of_objects, ['type', 'name']); However that is only for ascending sorting. Is there...
  • June 2, 2022
  • 0 Comments
How can I transform a big object to array with lodash? var obj = { 22: {name:"John", id:22, friends:[5,31,55], works:{books:, films:,} 12: {name:"Ivan", id:12, friends:[2,44,12], works:{books:, films:,} } //...
  • June 1, 2022
  • 0 Comments
I had a pull request feedback below, just wondering which way is the correct way to import lodash? You’d better do import has from ‘lodash/has’.. For the earlier version...
  • May 23, 2022
  • 0 Comments