Hey guys, I'm working with an array of keys here
Example 1:
let keyArray = ['x', 'y', 'z']
I'm trying to find a way to use these keys as parameters without repeating them multiple times. Do you have any suggestions on how to do this?
Example 2:
const [...keyArray] = someFunction(keyArray)
This way, I can easily use them as parameters like so:
const name = x.name
- However, it seems that Example 2 is not functioning as expected.