Menu
Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
Enterprise
Open source
Vector interface
Signature
typescript
export interface Vector<T = any> Import
typescript
import { Vector } from '@grafana/data';Properties
| Property | Type | Description |
|---|---|---|
| length | number |
Methods
| Method | Description |
|---|---|
| get(index) | Access the value by index (Like an array) |
| toArray() | Get the results as an array. |
length property
Signature
typescript
length: number;get method
Access the value by index (Like an array)
Signature
typescript
get(index: number): T;Parameters
| Parameter | Type | Description |
|---|---|---|
| index | number |
Returns:
T
toArray method
Get the results as an array.
Signature
typescript
toArray(): T[];Returns:
T[]
Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
Scroll for more