chore: server code formatting
This commit is contained in:
parent
aedabcbdee
commit
68517170e2
234 changed files with 9824 additions and 6195 deletions
|
|
@ -3,7 +3,8 @@ const _ = require('lodash')
|
|||
const camelize = obj =>
|
||||
_.transform(obj, (acc, value, key, target) => {
|
||||
const camelKey = _.isArray(target) ? key : _.camelCase(key.toString())
|
||||
acc[camelKey] = _.isObject(value) && !(value instanceof Date) ? camelize(value) : value
|
||||
acc[camelKey] =
|
||||
_.isObject(value) && !(value instanceof Date) ? camelize(value) : value
|
||||
})
|
||||
|
||||
module.exports = camelize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue