Skip to main content

I think you are looking for _.indexBY_.keyBy (or _.indexBy in older versions)

_.indexBykeyBy(data, 'rel');

I think you are looking for _.indexBY

_.indexBy(data, 'rel');

I think you are looking for _.keyBy (or _.indexBy in older versions)

_.keyBy(data, 'rel');
Source Link
Jon Anderson
  • 1.3k
  • 1
  • 9
  • 2

I think you are looking for _.indexBY

_.indexBy(data, 'rel');