To use the spread function from lodash library in typescript, you can follow the below steps:
26 chars2 lines
spread
function from the lodash library in your typescript file by adding the following code at the top of your file:index.ts33 chars2 lines
index.ts273 chars7 lines
Note that the spread
function returns a new array that concatenates the input arrays. If you need to concatenate the input arrays in place, you can use the concat
method of the Array
class instead.
gistlibby LogSnag