To use the valuesIn
function from the Lodash library in TypeScript, follow these steps:
19 chars2 lines
valuesIn
function into your TypeScript file:index.ts35 chars2 lines
index.ts69 chars6 lines
index.ts85 chars6 lines
valuesIn
function and pass the object as the argument:index.ts32 chars2 lines
The values
variable will now contain an array of the values from the myObj
object.
Full example:
index.ts282 chars18 lines
gistlibby LogSnag