Skip to main content
Module

x/deno2node/src/deps.deno.ts>forEachStructureChild

Compile your Deno project to run on Node.js.
Go to Latest
function forEachStructureChild
import { forEachStructureChild } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts";

Iterates over the elements in the provided array.

Type Parameters

TStructure

Parameters

structures: ReadonlyArray<Structures>
  • Array of structures to iterate over.
callback: (child: Structures) => TStructure | void
  • Callback to do on each element in the array. Returning a truthy value will return that value in the main function call.

Returns

TStructure | undefined

Iterates over the children of the provided array.

Type Parameters

TStructure

Parameters

structure: Structures
  • Structure to iterate over.
callback: (child: Structures) => TStructure | void
  • Callback to do on each child of the provided structure. Returning a truthy value will return that value in the main function call.

Returns

TStructure | undefined