Object Traversal and Transformation
JSON →The `traverse` package provides utility functions for deep traversal and transformation of JavaScript objects. It allows developers to recursively walk through object graphs, including arrays and nested objects, and perform operations such as in-place modification, deep cloning, and collection of specific nodes. Key features include explicit handling of circular references, various traversal methods like `map`, `forEach`, `reduce`, `paths`, and `nodes`, and a rich `this` context within callbacks providing information about the current node, its parent, path, and depth. The current stable version is 0.6.11, last updated several years ago, indicating an inactive release cadence. Its primary differentiator is its robust context object during traversal and explicit circular reference management. It is primarily a CommonJS module, which may require specific handling in modern ESM-only environments.
Traffic · last 30 days ↓89% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France