__ryan__
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
9 ms·
- 31.▲
- 32.▲
- 33.▲
- 34.▲
- 35.▲
- 36.▲
- 37.▲
- 38.▲
- 39.▲
- 40.▲
- 41.▲
- 42.▲
- 43.▲
- 44.▲
- 45.▲
- 46.▲
- 47.▲
Ah, I see. Yeah, you would have to bind the argument to a name then destructure it separately: let foo = (bar) => {
let {a, b, c} = bar
return [bar, a, b, c]
}
foo({ a: 1, b: 2, c: 3 }) // => [ { a: 1, b: - 48.▲
- 49.▲
- 50.▲
- 51.▲
- 52.▲
- 53.▲
- 54.▲
- 55.▲
- 56.▲
- 57.▲
- 58.▲
- 59.▲
- 60.▲
More ›