Skip to content

crush

Flattens a deep object to a single dimension, converting the keys to dot notation.

Usage

crush({ name: "ra", children: [{ name: "hathor" }] }); // { name: 'ra', 'children.0.name': 'hathor' }

Installation

Terminal window
npx atmx add helper crush