rofrischmann/inline-style-prefix-all

View on GitHub
modules/utils/joinPrefixedRules.js

Summary

Maintainability
A
0 mins
Test Coverage
import camelToDashCase from 'hyphenate-style-name'

// returns a style object with a single concated prefixed value string
export default (property, value, replacer = (prefix, value) => prefix + value) => ({
  [property]: [ '-webkit-', '-moz-', '' ].map(prefix => replacer(prefix, value))
})