- Lodash Tutorial
- Lodash - Home
- Lodash - Overview
- Lodash - Environment Setup
- Lodash - Array
- Lodash - Collection
- Lodash - Date
- Lodash - Function
- Lodash - Lang
- Lodash - Math
- Lodash - Number
- Lodash - Object
- Lodash - Seq
- Lodash - String
- Lodash - Util
- Lodash - Properties
- Lodash - Methods
- Lodash Useful Resources
- Lodash - Quick Guide
- Lodash - Useful Resources
- Lodash - Discussion
Lodash - String
Lodash has many easy to use String manipulation methods. This chapter discusses them in detail.
Lodash provides various String related methods as listed below −
Sr.No. | Method & Syntax |
---|---|
1 |
_.camelCase([string='']) |
2 |
_.capitalize([string='']) |
3 |
_.deburr([string='']) |
4 |
_.endsWith([string=''], [target], [position=string.length]) |
5 |
_.escape([string='']) |
6 |
_.escapeRegExp([string='']) |
7 |
_.kebabCase([string='']) |
8 |
_.lowerCase([string='']) |
9 |
_.lowerFirst([string='']) |
10 |
_.pad([string=''], [length=0], [chars=' ']) |
11 |
_.padEnd([string=''], [length=0], [chars=' ']) |
12 |
_.padStart([string=''], [length=0], [chars=' ']) |
13 |
_.parseInt(string, [radix=10]) |
14 |
_.repeat([string=''], [n=1]) |
15 |
_.replace([string=''], pattern, replacement) |
16 |
_.snakeCase([string='']) |
17 |
_.split([string=''], separator, [limit]) |
18 |
_.startCase([string='']) |
19 |
_.startsWith([string=''], [target], [position=0]) |
20 |
_.template([string=''], [options={}]) |
21 |
_.toLower([string='']) |
22 |
_.toUpper([string='']) |
23 |
_.trim([string=''], [chars=whitespace]) |
24 |
_.trimEnd([string=''], [chars=whitespace]) |
25 |
_.trimStart([string=''], [chars=whitespace]) |
26 |
_.truncate([string=''], [options={}]) |
27 |
_.unescape([string='']) |
28 |
_.upperCase([string='']) |
29 |
_.upperFirst([string='']) |
30 |
_.words([string=''], [pattern]) |
To Continue Learning Please Login
Login with Google