Lodash - Lang


Advertisements

Lodash has many easy to use general purpose methods. This chapter discusses them in detail.

Lodash provides various general purpose methods as listed below −

Sr.No. Method & Syntax
1

castArray

_.castArray(value)

2

clone

_.clone(value)

3

cloneDeep

_.cloneDeep(value)

4

conformsTo

_.conformsTo(object, source)

5

eq

_.eq(value, other)

6

gt

_.gt(value, other)

7

gte

_.gte(value, other)

8

isArguments

_.isArguments(value)

9

isArray

_.isArray(value)

10

isArrayBuffer

_.isArrayBuffer(value)

11

isArrayLike

_.isArrayLike(value)

12

isArrayLikeObject

_.isArrayLikeObject(value)

13

isBoolean

_.isBoolean(value)

14

isBuffer

_.isBuffer(value)

15

isDate

_.isDate(value)

16

isEmpty

_.isEmpty(value)

17

isEqual

_.isEqual(value, other)

18

isEqualWith

_.isEqualWith(value, other, [customizer])

19

isError

_.isError(value)

20

isFinite

_.isFinite(value)

21

isFunction

_.isFunction(value)

22

isInteger

_.isInteger(value)

23

isLength

_.isLength(value)

24

isMap

_.isMap(value)

25

isMatch

_.isMatch(object, source)

26

isMatchWith

_.isMatchWith(object, source, [customizer])

27

isNaN

_.isNaN(value)

28

isNative

_.isNative(value)

29

isNil

_.isNil(value)

30

isNull

_.isNull(value)

31

isNumber

_.isNumber(value)

32

isObject

_.isObject(value)

33

isObjectLike

_.isObjectLike(value)

34

isPlainObject

_.isPlainObject(value)

35

isRegExp

_.isRegExp(value)

36

isSafeInteger

_.isSafeInteger(value)

37

isSet

_.isSet(value)

38

isString

_.isString(value)

39

isSymbol

_.isSymbol(value)

40

isTypedArray

_.isTypedArray(value)

41

isUndefined

_.isUndefined(value)

42

isWeakMap

_.isWeakMap(value)

43

isWeakSet

_.isWeakSet(value)

44

lt

_.lt(value, other)

45

lte

_.lte(value, other)

46

toArray

_.toArray(value)

47

toFinite

_.toFinite(value)

48

toInteger

_.toInteger(value)

49

toLength

_.toLength(value)

50

toNumber

_.toNumber(value)

51

toPlainObject

_.toPlainObject(value)

52

toSafeInteger

_.toSafeInteger(value)

53

toString

_.toString(value)

Advertisements