UNPKG

styled-components

Version:

Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress 💅

16 lines (12 loc) • 338 B
// @flow import type { Interpolation } from '../types' export default ( strings: Array<string>, interpolations: Array<Interpolation> ): Array<Interpolation> => { const result = [strings[0]] for (let i = 0, len = interpolations.length; i < len; i += 1) { result.push(interpolations[i], strings[i + 1]) } return result }