UNPKG

@paydirt/fmt

Version:

String formating using commonly used standards

9 lines (8 loc) 252 B
import stringReplacer from './string'; export default function (_, mods, value) { return stringReplacer('s', mods, (typeof value === 'object' ? (Array.isArray(value) ? 'array' : 'object') : typeof value)); }