I have an object like below
const myObject = {
param1: 'val-1',
param2: myFunction,
param3: {test: 'test'},
};
Now is there any dynamic way so I can pass this object properties as individual parameters like below?
callBack('val-1', myFunction, {test: 'test'});
Note: Number of Object properties are dynamic.