drop: (item, monitor) => addTaskToSprint(item.id, monitor, drop)
length: 2
name: "drop"
arguments: (...)
caller: (...)
[[FunctionLocation]]: SprintCard.jsx:45
[[Prototype]]: ƒ ()
[[Scopes]]: Scopes[3]
0: Closure (SprintCard)
ItemType: "Task Card"
addTaskToSprint: (id, monitor, dropTargetProps, task) => {…}
drop: ƒ ()
My api response looks like this,
I need to access [[Scopes]] so I can get the ItemType variable
drop is a function so accessing the scope like so (spec.drop.scopes) won't work
when I console.log(spec.drop) it shows the function declaration only
So is there any way to have access scopes?