How to extract data by key from an array?

  • 0
    There is an array in which data is stored in the following form:

    How to select data from an array into a new variable so that only the values ​​with the "i" key remain.
    For example in this form:
    Or like this:
    [{"i": 111111}, {"i": 222222}, {"i": 333333}]
    JavaScript Ronan Calderon, Jan 4, 2019

  • 1 Answers
  • 0 (({i}) = & gt; i); (({i}) = & gt; ({i}));

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