TypeScript_Basic 3: String methods in TypeScript? Most use cases of String methods in TypeScript?

Опубликовано: 16 Февраль 2022
на канале: Codenbox AutomationLab
829
7

#TypeScript #JavaScript

▬▬▬▬▬▬ In this Video ▶️ ▬▬▬▬▬▬
A list of the methods available in String object along with their description is given below −
charAt(): Returns the character at the specified index.
concat(): Combines the text of two strings and returns a new string.
match(): Used to match a regular expression against a string.
replace(): Used to find a match between a regular expression and a string, and to replace the matched substring with a new substring.
split(): Splits a String object into an array of strings by separating the string into substrings.
slice(): Extracts a section of a string and returns a new string.
substring(): Returns the characters in a string between two indexes into the string.
toLocaleLowerCase(): The characters within a string are converted to lower case while respecting the current locale.
toLowerCase(): Returns the calling string value converted to lower case.


▬▬▬▬▬▬ Useful Links 🛠 ▬▬▬▬▬▬
Blog ► http://codenboxautomationlab.com/​​​
GitHub Repo ► https://github.com/codenbox​​
Testing API ► https://pokeapi.co/
API Doc ► https://docs.cypress.io/api/commands/...
REST API response code ► https://codenboxautomationlab.com/res...


▬▬▬▬▬▬ Connect with us 👋 ▬▬▬▬▬▬
~~~Subscribe to this channel, and press bell icon to get all updated videos on Selenium and Cypress Automation:    / codenboxautomationlab  

~~~ Follow us on Facebook & Twitter to get more updates:
►  / ​​​  
►  / codenboxteam