What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-20 23:30:03
Convert a string to numbers in an array and define by even and odd values
// Convert a string to numbers in an array and define by even and odd values function reverseOdd(str) { let odd = []; let even = []; let arrayStr = str.split(" ").map(function(element){return element.length;}); for (var i = 0; i < array... Add solution -
Javascript 2021-09-12 19:55:03
how to highlight in pdf
function getSelectionCoords() { var pdfViewer = window.appPdfViewer; var pageIndex = pdfViewer.currentPageNumber - 1; var page = pdfViewer.getPageView(pageIndex); var pageRect = page.canvas.getClientRects()[0]; var selectionRects ... Add solution -
Javascript 2021-09-11 15:53:03
how to set JSON data bootstrap treeview with java
var withText = jsondata.map(function(i) { i['text'] = i['bibliography_text']; return i; }); var nestedData = d3.nest() .key(function(d) { return d.country; }) .key(function(d) { return d.city; }) .entries(withText); Add solution -
Go 2021-09-10 16:09:02
read every cell in a column google app script
function appendString() { var range = SpreadsheetApp.getActiveSheet().getActiveRange(); var values = range.getValues(); var modified = values.map(function (row) { return row.map(function (col) { return col + " string"; });... Add solution -
Javascript 2021-09-10 02:57:01
locate and delete an object in an array
// we have an array of objects, we want to remove one object using only the id property var apps = [{id:34,name:'My App',another:'thing'},{id:37,name:'My New App',another:'things'}]; // get index of object with id:37 var removeIndex = apps.map(function... Add solution
Best helpers
Ranking is empty