Controversial take: you shouldn't use `forEach()` in modern JavaScript.
Only possible exception is if you have a quick one-liner or if you really really know what you're doing.
Here's why: masteringjs.io/tutorials/fun…#JavaScript#CodeNewbie
Most life-changing skill we've learned this year:
Shift+Tab to dedent code 1 level. Works in VSCode and Carbon.
Singlehandedly saved us probably 10k "delete" button clicks.
#DEVCommunity#JavaScript
Everybody uses `mongoose.Schema.Types.ObjectId` to define ObjectId paths in @mongoosejs schemas...
But did you know you can also use 'ObjectId' as a string, or `mongoose.ObjectId`? 😎
#NodeJS#MongoDB#CodeNewbie