English 中文(简体)
Lodash - String
  • 时间:2024-12-22

Lodash - String


Previous Page Next Page  

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

_.camelCase([string= ])

2

capitapze

_.capitapze([string= ])

3

deburr

_.deburr([string= ])

4

endsWith

_.endsWith([string= ], [target], [position=string.length])

5

escape

_.escape([string= ])

6

escapeRegExp

_.escapeRegExp([string= ])

7

kebabCase

_.kebabCase([string= ])

8

lowerCase

_.lowerCase([string= ])

9

lowerFirst

_.lowerFirst([string= ])

10

pad

_.pad([string= ], [length=0], [chars= ])

11

padEnd

_.padEnd([string= ], [length=0], [chars= ])

12

padStart

_.padStart([string= ], [length=0], [chars= ])

13

parseInt

_.parseInt(string, [radix=10])

14

repeat

_.repeat([string= ], [n=1])

15

replace

_.replace([string= ], pattern, replacement)

16

snakeCase

_.snakeCase([string= ])

17

spilt

_.sppt([string= ], separator, [pmit])

18

startCase

_.startCase([string= ])

19

startsWith

_.startsWith([string= ], [target], [position=0])

20

template

_.template([string= ], [options={}])

21

toLower

_.toLower([string= ])

22

toUpper

_.toUpper([string= ])

23

trim

_.trim([string= ], [chars=whitespace])

24

trimEnd

_.trimEnd([string= ], [chars=whitespace])

25

trimStart

_.trimStart([string= ], [chars=whitespace])

26

truncate

_.truncate([string= ], [options={}])

27

unescape

_.unescape([string= ])

28

upperCase

_.upperCase([string= ])

29

upperFirst

_.upperFirst([string= ])

30

words

_.words([string= ], [pattern])

Advertisements