Posts by demaroar • 41 points
2 posts
-
1
votes3
answers56
viewsA: a line of my object array is missing
Actually the "map" function does not modify the list, it returns another modified list. Also, you are using the "find" method instead of "filter" to filter the elements. Below is a modified version…
javascriptanswered demaroar 41 -
3
votes1
answer30
viewsA: How to capture an exception of a function that is within a Try catch?
Maybe that’ll solve your problem: async function printForNetwork( device ) { try { // ... await Promise.resolve(device.open( err => { if (err) throw err; // ... })); } catch (e) { throw e; } }…
javascriptanswered demaroar 41