Recently, while delving into the vue-next source code, I stumbled upon a particular line that left me puzzled. Due to my limited experience with TypeScript, I found myself struggling to grasp its purpose.
Could someone clarify if this snippet constitutes a function? If so, what exactly is its intended functionality?
const isComment = (node: Node): node is Comment =>
node.nodeType === DOMNodeTypes.COMMENT