react-loading-progress
Version:
Loading display components
13 lines (11 loc) • 326 B
JavaScript
// @flow
import type { Interpolation } from '../types'
export default (
strings: Array<string>,
interpolations: Array<Interpolation>
): Array<Interpolation> =>
interpolations.reduce(
(array: Array<Interpolation>, interp: Interpolation, i: number) =>
array.concat(interp, strings[i + 1]),
[strings[0]]
)