Answers for "index array for loop es6"

5

js for of array with index

for (const [index, value] of [1, 2, 3, 4, 5].entries()) {
  console.log(index, value);
}
Posted by: Guest on June-18-2021
0

looping through an ES index

curl -XGET 'localhost:9200/_search?search_type=scan&scroll=10m&size=1000' -d '
{
    "query" : {
        "match_all" : {}
    }
}
'
Posted by: Guest on June-18-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language