Is there a good way to spread an object into parameters?
Say I have an object
const obj = {
  name: 'puppy',
  breed: 'poodle',
  weight: '7'
}
And a method such as this
const method = (name, breed, weight, height) => {
  // do something
}
I'd like to do something like this
method(...obj)
However, this obviously won't work because I can't spread an object like that. What can I do instead?
 
     
     
    