logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git

attributes_helper.service.js (190B)


  1. import { kebabCase } from 'lodash'
  2. const propsToNative = props => Object.keys(props).reduce((acc, cur) => {
  3. acc[kebabCase(cur)] = props[cur]
  4. return acc
  5. }, {})
  6. export { propsToNative }