$k. HitCollection#

A collection of hits. Can be model of a view.

Constructor#

new $k.HitCollection(hits)#

Constructs a hit collection from a given set of hits

Parameters:
NameTypeDescription
hitsArray.<$k.Hit>

hits to be set

Since
  • 5.5.1

Methods#

elements() → {Array.<$k.Hit>}#

Get the contents as an array of hits

Since
  • 5.5.1
Deprecated
  • use hits() instead
Returns:
Type: 
Array.<$k.Hit>

hits() → {Array.<$k.Hit>}#

Get the contents as an array of hits.

Since
  • 5.8.2
Returns:
Type: 
Array.<$k.Hit>