0

Is it any possible to group all destructed props at once?
Rather than like:

const {
      las,
      aes,
      mannanase } = BenchmarkFormulas[id].defaultBenchmark,
ingredients = {
      las,
      aes,
      mannanase }

Mind that my real destructuring list is quite long.
If not, that would great if the next version of TS and ES would have it.


Something like:
const ingredients = {
      las,
      aes,
      mannanase } = BenchmarkFormulas[id].defaultBenchmark;
RegarBoy
  • 2,234
  • 15
  • 36

0 Answers0