Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
// @flow
import interleave from '../utils/interleave'
import flatten from '../utils/flatten'
import { Interpolation, RuleSet, Styles } from '../types'

export default (
  styles: Styles,
  ...interpolations: Array<Interpolation>
): RuleSet => {
  if (!Array.isArray(styles) && typeof styles === 'object') {
    return flatten(interleave([], [styles, ...interpolations]))
  }
  return flatten(interleave(styles, interpolations))
}