What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-12 17:14:20
Return Distinct Array Object
const array = [ { id: 3, name: 'Central Microscopy', fiscalYear: 2018 }, { id: 5, name: 'Crystallography Facility', fiscalYear: 2018 }, { id: 3, name: 'Central Microscopy', fiscalYear: 2017 }, { id: 5, name: 'Crystallography Facility', fiscalY... Add solution -
Javascript 2021-11-11 16:43:18
merging to arrays
const array1 = ["item1", "item2"]; const array2 = ["item3", "item4", "item5", "item6"]; const array3 = array1.concat(array2); // ["item1", "item2", "item3", "... Add solution -
Javascript 2021-11-03 04:12:14
Returns the minimum of the given dates
const tips_minDate = dates => new Date(Math.min(...dates)); const array = [ new Date(2016, 4, 13), new Date(2018, 3, 12), new Date(2016, 0, 10), new Date(2017, 0, 9) ]; console.log(tips_minDate(array)); // 2016-01-08T22:00:00.000Z Add solution -
Other 2021-10-28 17:16:06
complementary dna
function DNAStrand(dna) { const arrayDNA = dna.split(""); let complementaryDNA = ""; arrayDNA.forEach((base) => { if (base === "A") complementaryDNA += "T"; if (base === "T") complementar... Add solution -
Javascript 2021-10-28 08:45:11
compare two arrays and filter existing object js
const arrayOne = [ { value: "4a55eff3-1e0d-4a81-9105-3ddd7521d642", display: "Jamsheer" }, { value: "644838b3-604d-4899-8b78-09e4799f586f", display: "Muhammed" }, { value: "b6ee537a-375c-45bd-b9d4-4dd84a... Add solution
Best helpers
Ranking is empty