const stuff = { data: { things: [1,2,3,4] } }; const getThings = ({ data: {things} }) => { console.log(things) }; getThings(stuff);