Files
dndbeyond_src/ddb_main/node_modules/styled-components/src/utils/interleave.js
T
2025-05-28 15:36:51 -07:00

16 lines
343 B
JavaScript

// @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;
};