Skip to main content
Module

x/rambda/interpolate-spec.ts

Faster and smaller alternative to Ramda
Go to Latest
File
import {interpolate} from 'rambda'
const templateInput = 'foo {{x}} baz'const templateArguments = {x: 'led zeppelin'}
describe('R.interpolate', () => { it('happy', () => { const result = interpolate(templateInput, templateArguments)
result // $ExpectType string }) it('curried', () => { const result = interpolate(templateInput)(templateArguments)
result // $ExpectType string })})