attributes_helper.service.js (190B)
- import { kebabCase } from 'lodash'
- const propsToNative = props => Object.keys(props).reduce((acc, cur) => {
- acc[kebabCase(cur)] = props[cur]
- return acc
- }, {})
- export { propsToNative }
git clone https://hacktivis.me/git/pleroma-fe.git
attributes_helper.service.js (190B)
- import { kebabCase } from 'lodash'
- const propsToNative = props => Object.keys(props).reduce((acc, cur) => {
- acc[kebabCase(cur)] = props[cur]
- return acc
- }, {})
- export { propsToNative }