UNPKG

libmodulor

Version:

A TypeScript library to create platform-agnostic applications

6 lines (5 loc) 170 B
export function humanize(value) { let res = value.replace(/([a-z])([A-Z])/g, '$1 $2').trim(); res = res.charAt(0).toUpperCase() + res.slice(1); return res; }