Iterates through all keys in an object. Optionally provides traversal order. Does not support circular references and will throw a RangeError with max call stack exceeded.

// TODO: Add support for BFS traversal order.

Type Parameters

  • T extends Record<PropertyKey, any>

Implements

Constructors

Properties

Methods

Constructors

Properties

arr: ObjectEntry[] = []
inner: null | Iterator<ObjectEntry, any, any> = null
traversal: "post-order-DFS" | "pre-order-DFS" | "BFS" = 'post-order-DFS'

Methods