JSFiddle - React, Tailwind, and code Playground

by inser

JavaScript

const format = (str: string, ...args) => [...args].reduce((p,c) => p.replace(/%s/,c), str)