chore: use monorepo organization
This commit is contained in:
parent
deaf7d6ecc
commit
a687827f7e
1099 changed files with 8184 additions and 11535 deletions
9
packages/server/lib/utils.js
Normal file
9
packages/server/lib/utils.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
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
|
||||
})
|
||||
|
||||
module.exports = camelize
|
||||
Loading…
Add table
Add a link
Reference in a new issue