- Lodash - Discussion
- Lodash - Useful Resources
- Lodash - Quick Guide
- Lodash - Methods
- Lodash - Properties
- Lodash - Util
- Lodash - String
- Lodash - Seq
- Lodash - Object
- Lodash - Number
- Lodash - Math
- Lodash - Lang
- Lodash - Function
- Lodash - Date
- Lodash - Collection
- Lodash - Array
- Lodash - Environment Setup
- Lodash - Overview
- Lodash - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Lodash - String
Lodash has many easy to use String manipulation methods. This chapter discusses them in detail.
Lodash provides various String related methods as psted below −
Sr.No. | Method & Syntax |
---|---|
1 |
_.camelCase([string= ]) |
2 |
_.capitapze([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 |
_.sppt([string= ], separator, [pmit]) |
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]) |