To use the _.toLower()
function from the lodash library in TypeScript, you first need to install the lodash library:
19 chars2 lines
Then, you can import the toLower
function from the lodash library, and use it like this:
index.ts172 chars7 lines
The toLower
function takes a string as input, and returns a new string with all uppercase characters converted to lowercase.
gistlibby LogSnag