diff options
Diffstat (limited to 'includes/external/addressbook/node_modules/lowercase-keys/index.js')
-rw-r--r-- | includes/external/addressbook/node_modules/lowercase-keys/index.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/external/addressbook/node_modules/lowercase-keys/index.js b/includes/external/addressbook/node_modules/lowercase-keys/index.js new file mode 100644 index 0000000..c1e27e4 --- /dev/null +++ b/includes/external/addressbook/node_modules/lowercase-keys/index.js @@ -0,0 +1,3 @@ +export default function lowercaseKeys(object) { + return Object.fromEntries(Object.entries(object).map(([key, value]) => [key.toLowerCase(), value])); +} |