API Docs for: 1.0.0
Show:

Array~object-extras Class

Item Index

Methods

Methods

toObject

(
  • a
  • k
)
Object static

Converts the array of objects into a map of the same objects, keyed off a particular attribute.

Parameters:

  • a Array

    the array to iterate

  • k String

    the attribute to key off

Returns:

Object:

map of the objects