title: how can i get the highest lowest and medium value from an array ..?
body: <pre><code>[
  0: {&quot;carrier&quot;: &quot;Spicejet&quot;, &quot;value&quot;: 2596},
  1: {&quot;carrier&quot;: &quot;Spicejet&quot;, &quot;value&quot;: NaN},
  2: {&quot;carrier&quot;: &quot;Spicejet&quot;, &quot;value&quot;: 2864},
  3: {&quot;carrier&quot;: &quot;Indigo&quot;, &quot;value&quot;: 3000},
  4: {&quot;carrier&quot;: &quot;Indigo&quot;, &quot;value&quot;: 5500},
  5: {&quot;carrier&quot;: &quot;Indigo&quot;, &quot;value&quot;: 4500}
  ]
  </code></pre>
  <p>The above JSON value is not static. Sometimes it gets only two &quot;value&quot;.  Get the lowest, highest, and medium values.</p>
  <pre><code>[
  0: {&quot;carrier&quot;: &quot;Spicejet&quot;, &quot;value&quot;: 2596},
  1: {&quot;carrier&quot;: &quot;Indigo&quot;, &quot;value&quot;: 3000},
  2: {&quot;carrier&quot;: &quot;Indigo&quot;, &quot;value&quot;: 5500},
  ]
  </code></pre>