What's new?
- Created a doc page (https://evandrolg.github.io/str/)
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 tocamel case
-
str.
kebab_case(value:string):string
Converts string tokebab case
-
str.
snake_case(value:string):string
Converts string tosnake case