import _ from 'lodash'
import defineClass from '../util/defineClass'

export default function({shadows}) {
  return _(shadows)
    .toPairs()
    .map(([className, shadow]) => {
      return defineClass(`shadow-${className}`, {
        boxShadow: shadow,
      })
    })
    .value()
}

import _ from 'lodash'
import defineClass from '../util/defineClass'

export default function({shadows}) {
  return _.map(shadows, (shadow, className) => {
    return defineClass(`shadow-${className}`, {
      boxShadow: shadow,
    })
  })
}

Refactor shadow generator to map object directly instead of converting to pairs
Refactor shadow generator to map object directly instead of converting to pairs
