Type alias Vector<T>

Vector<T>: T extends ((...args: any) => any) ? Iterable<T> & ((...params: Parameters<T>) => Vector<ReturnType<T>>) : Iterable<T> & { [ K in keyof T]: Vector<T[K]> }

Description

Similar to a vectorized object from array programming

example:

import { Vector } from 'peekeasy'

const vector = new Vector([{ text: 'Hello,' }, { text: 'vector!' }])

// Hello, vector!
console.log(...vector.text)

Type Parameters

Generated using TypeDoc