normalise-case
v1.0.3
Published
normalise case for strings and object keys
Downloads
2
Readme
normalise case
A simple, recursive transform of strings or keys of objects.
Supports looking through nested objects and through arrays.
Usage
var normaliseCase = require('normalise-case');
var objectToNormalise = {
UpperCamelCase: [
{ SomeKey: 1 },
],
};
var normalised = normaliseCase(objectToNormalise);
normalised.upperCamelCase[0].someKey === 1;