1. lowercase-keys
Lowercase the keys of an object
lowercase-keys
Package: lowercase-keys
Created by: sindresorhus
Last modified: Fri, 09 Jun 2023 21:33:00 GMT
Version: 3.0.0
License: MIT
Downloads: 90,255,286
Repository: https://github.com/sindresorhus/lowercase-keys

Install

npm install lowercase-keys
yarn add lowercase-keys

lowercase-keys

Lowercase the keys of an object

Check out map-obj if you need support for deep iteration.

Install

 npm install lowercase-keys

Usage

 import lowercaseKeys from 'lowercase-keys';

lowercaseKeys({FOO: true, bAr: false});
//=> {foo: true, bar: false}

API

lowercaseKeys(object)

Returns a new object with the keys lowercased.

lowercase-keys for enterprise

Available as part of the Tidelift Subscription.

The maintainers of lowercase-keys and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin