securityos/node_modules/camelize/example/camel.js

13 lines
214 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
'use strict';
var camelize = require('../');
var obj = {
fee_fie_foe: 'fum',
beep_boop: [
{ 'abc.xyz': 'mno' },
{ 'foo-bar': 'baz' }
]
};
var res = camelize(obj);
console.log(JSON.stringify(res, null, 2));