@resee-movies/utilities - v0.8.0
    Preparing search index...

    Function humanize

    • Splits a string on hyphens, underscores, and uppercase characters, with some extra care given to characters runs that look like they might be an acronym. This is particularly suited to turning variable names into human-friendly strings.

      humanize('firstName');   // > "First Name"
      humanize('first-name'); // > "First Name"
      humanize('first_name'); // > "First Name"
      humanize('someURLProp'); // > "Some URL Prop"

      Parameters

      • value: string

      Returns string