Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 681 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 681 Bytes

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' } };