clone-to-case
v1.0.4
Published
Clone javascript object with string property keys converted to different case
Downloads
3,969
Readme
Clone-To-Case.js
Clone javascript object with string property keys converted to different case
Example
var clone = require("./dist/clone.js");
var stringifyX = require("stringify-x");
console.log(stringifyX(clone({
a_b_c: "abc",
XYZ: "xyz"
}, "camel"), true));
Output:
{
"aBC": "abc",
"xyz": "xyz"
}