What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-03 00:15:12
js return unique values from array of objects
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-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-10-21 22:12:05
how to collect multiple fields using busboy nodejs
app.post('/somewhere', (req, res) => { let formData = new Map(); req.busboy.on('field', function(fieldname, val) { formData.set(fieldname, val); }); req.busboy.on("finish", function() { console.log(formData) // Map { 'name'... Add solution -
Javascript 2021-10-19 13:30:10
node get value from map
let myMap = new Map(); myMap.set("key1", "value1"); myMap.set("key2", "value2"); console.log(myMap.has("key1")); // true console.log(myMap.has("key2")); // true console.log(myMap.get("key... Add solution -
Javascript 2021-09-29 14:37:03
node map has value
let myMap = new Map(); myMap.set("key1", "value1"); myMap.set("key2", "value2"); console.log(myMap.has("key1")); // true console.log(myMap.has("key2")); // true console.log(myMap.get("key... Add solution