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

PropertyTypeDescription
lengthnumber

Methods

MethodDescription
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

ParameterTypeDescription
indexnumber

Returns:

T

toArray method

Get the results as an array.

Signature

typescript
toArray(): T[];

Returns:

T[]