Constructor#
new $k.HitCollection(hits)#
Constructs a hit collection from a given set of hits
Parameters:
Name | Type | Description |
---|---|---|
hits | Array.<$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>