What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-09 23:47:03
loop over an array
var data = [1, 2, 3, 4, 5, 6]; // traditional for loop for(let i=0; i<=data.length; i++) { console.log(data[i]) // 1 2 3 4 5 6 } // using for...of for(let i of data) { console.log(i) // 1 2 3 4 5 6 } // using for...in for(let i in data) { con... Add solution -
Javascript 2021-10-09 18:33:03
Iterate Through an Array with a For Loop
var data = [1, 2, 3, 4, 5, 6]; // traditional for loop for(let i=0; i<=data.length; i++) { console.log(data[i]) // 1 2 3 4 5 6 } // using for...of for(let i of data) { console.log(i) // 1 2 3 4 5 6 } // using for...in for(let i in data) { con... Add solution -
Javascript 2021-10-09 11:34:04
js loop through array
var data = [1, 2, 3, 4, 5, 6]; // traditional for loop for(let i=0; i<=data.length; i++) { console.log(data[i]) // 1 2 3 4 5 6 } // using for...of for(let i of data) { console.log(i) // 1 2 3 4 5 6 } // using for...in for(let i in data) { con... Add solution -
Other 2021-10-05 12:01:03
Replacing text with table using google script
function searchTextReplTable(texttofind){ var doc=DocumentApp.getActiveDocument(); var body=doc.getBody(); var rgel=body.findText(texttofind); var element=rgel.getElement(); var childIndex=body.getChildIndex(element.getParent()); var t=[];//Th... Add solution -
Shell/Bash 2021-10-03 16:34:04
shell script to reindex elasticsearch
#!/bin/bash #ES_HOST="localhost" #ES_PORT="9200" TMP="_v2" echo "**** Script Execution Started ****" echo " " echo "**** Fetching List of Indices Elasticsearch Reindexing ****" curl -s -X GET '... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5