Param0
Get a function's first parameter
Parameter of a function are often passed wrapped into an object, React props is a notable example:
To extract Props
you can use:
It's kind of the same of doing:
but
and
Last updated
Get a function's first parameter
Parameter of a function are often passed wrapped into an object, React props is a notable example:
To extract Props
you can use:
It's kind of the same of doing:
but
and
Last updated