What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-16 18:35:08
loop through an array in js
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 -
C# 2022-02-15 22:45:04
how to check if file contains image c#
public static readonly List<string> ImageExtensions = new List<string> { ".JPG", ".JPE", ".BMP", ".GIF", ".PNG" }; private void button_Click(object sender, RoutedEventArgs e) { var folder ... Add solution -
Java 2022-02-15 14:50:19
how to print the map in java
import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.stream.Stream; class MapUtil { // Program to print all keys present in the Map using keySet() in Java public... Add solution -
-
TypeScript 2022-02-11 21:20:01
como percorrer um array js
// Requiring the lodash library // src: https://lodash.com/docs/4.17.15#forEach // console: npm i --save lodash const _ = require("lodash") // Use of _.forEach() method _.forEach([1, 2], function(value) { console.log(value) }); // => L... Add solution