Skip to content

mapKeys

Map over all the keys of an object to return a new object.

Usage

const a = { a: 1, b: 2, c: 3 };
mapKeys(a, (key, value) => key + value); // => { a1: 1, b2: 2, c3: 3 }

Installation

Terminal window
npx atmx add helper map-keys