Skip to content

str v1.5.0 is out!

Latest
Compare
Choose a tag to compare
@EvandroLG EvandroLG released this 21 Jun 20:54

What's new?

Added new methods:

  • str. unescape(value:string):string
    Converts the HTML entities &, <, >, " and ' in string to their corresponding characters

  • str. escape(value:string):string
    Converts the characters "&", "<", ">", '"', and "'" in string to their corresponding html entities

  • str. includes(value:string, substr:string):boolean
    Determines wether the substring was found within the string

  • str. index_of(value:string, substr:string):number
    Returns the position of the first occurrence of a specific substring

  • str. camel_case(value:string):string
    Converts string to camel case

  • str. kebab_case(value:string):string
    Converts string to kebab case

  • str. snake_case(value:string):string
    Converts string to snake case