Skip to content

keys

Get a string list of all key names that exist in an object (deep).

Usage

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

Installation

Terminal window
npx atmx add helper keys