Chore: Restore vectorator export (#83637)

This commit is contained in:
Ryan McKinley 2024-02-28 13:00:00 -08:00 committed by GitHub
parent a862a4264d
commit 239abe4234
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -46,3 +46,4 @@ export { getLinksSupplier } from './field/fieldOverrides';
// deprecated // deprecated
export { CircularVector } from './vector/CircularVector'; export { CircularVector } from './vector/CircularVector';
export { vectorator } from './vector/FunctionalVector';

View File

@ -183,7 +183,7 @@ const emptyarray: any[] = [];
* *
* @deprecated use a simple Arrays * @deprecated use a simple Arrays
*/ */
function vectorator<T>(vector: FunctionalVector<T>) { export function vectorator<T>(vector: FunctionalVector<T>) {
return { return {
*[Symbol.iterator]() { *[Symbol.iterator]() {
for (let i = 0; i < vector.length; i++) { for (let i = 0; i < vector.length; i++) {