Find all params inside objecta?

  • 0
    Sorry for the stupid question, but how do you get to all the params?
    JavaScript Anonymous, Dec 19, 2019

  • 2 Answers
  • 0
    What exactly does "get" mean?

    const allParams = elements.map(({ params }) => params);
    // or
    elements.forEach(({ params: { coup, x, y }) => { ... });
    Anonymous

  • 0

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!