src/server/Document/Renderers/litePageTransforms/index.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import transformAnchorTags from './transformAnchorTags';

type Fn = (html: string) => string;

const pipe =
  (...fns: Fn[]) =>
  (x: string) =>
    fns.reduce((result, nextFn) => nextFn(result), x);

export default pipe(transformAnchorTags);