mirror-keys
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

mirror-keys

npm version Try mirror-keys on RunKit

Example usage:

import mirrorKeys from 'mirror-keys';
 
mirrorKeys(undefined, { a: undefined }); // { a: 'a' };
mirrorKeys('Home.', { a: undefined }); // { a: 'Home.a' };
mirrorKeys(undefined, { a: { b: undefined } }); // { a: { b: 'b' } };
mirrorKeys('Home.', { a: { b: undefined } }); // { a: { b: 'Home.b' } };

Readme

Keywords

Package Sidebar

Install

npm i mirror-keys

Weekly Downloads

8

Version

1.0.1

License

ISC

Last publish

Collaborators

  • brunolm