All files / src/fn string-wrap.js

100% Statements 2/2
100% Branches 0/0
100% Functions 1/1
100% Lines 1/1
1 2 3 4 5 6 7 8    6x          
import {curry, split, map, join, pipe} from 'f-utility'
 
export const stringWrap = curry((delimiter, fn, x) => pipe(
  split(delimiter),
  map(fn),
  join(delimiter)
)(x))