1
0

run npm install to generate a package lock

This commit is contained in:
sashinexists
2024-12-07 13:18:31 +11:00
parent e7d08a91b5
commit 23437d228e
2501 changed files with 290663 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import deepValuesIterator from "./deepValuesIterator.js";
/**
* Return the in-order exterior values of a tree as a flat array.
*
* @param {import("../../index.ts").Treelike} treelike
* @param {{ expand?: boolean }} [options]
*/
export default async function deepValues(
treelike,
options = { expand: false }
) {
const iterator = deepValuesIterator(treelike, options);
const values = [];
for await (const value of iterator) {
values.push(value);
}
return values;
}