Lodash - Methods



This chapter discusses lodash properties in detail.

Sr.No. Method & Syntax
1

_.VERSION − (string): The semantic version number.

2

_.templateSettings − (Object): By default, the template delimiters used by lodash are like those in embedded Ruby (ERB) as well as ES2015 template strings. Change the following template settings to use alternative delimiters.

3

_.templateSettings.escape − (RegExp): Used to detect data property values to be HTML-escaped.

4

_.templateSettings.evaluate − (RegExp): Used to detect code to be evaluated.

5

_.templateSettings.imports − (Object): Used to import variables into the compiled template.

6

_.templateSettings.interpolate − (RegExp): Used to detect data property values to inject.

7

_.templateSettings.variable − (string): Used to reference the data object in the template text.

Advertisements