Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function isBlockToken (token: ParserToken, name: string): token is ParserTagToken {
if (token.type === TagTypes.TAG || token.type === TagTypes.ETAG) {
return token.properties.name === name
}
return false
}