You’ll need node 11 or higher for Array.prototype.flat
. MDN is a great resource both for learning about Javascript and as a reference. You will find information about usage, browser compatibility, and even polyfills there.
As for Node.js support of ES6+, the best resource is node.green with a very detailed and up to date list of supported features by node version.