Closed toneworm closed 4 years ago
This wouldn't be my approach but I've inherited a codebase which uses floats as keys in some of the api responses. These get stripped out when using camelcaseKeys.
const camelcaseKeys = require('camelcase-keys'); camelcaseKeys({ 2.95: true }); // { 295: true }
You can exclude such keys with the exclude option. It's not something that will be handled here.
exclude
This wouldn't be my approach but I've inherited a codebase which uses floats as keys in some of the api responses. These get stripped out when using camelcaseKeys.