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 linesindex.ts85 chars6 linesvaluesIn 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 linesgistlibby LogSnag