How to use the html-void-elements.indexOf function in html-void-elements

To help you get started, we’ve selected a few html-void-elements examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Prettyhtml / prettyhtml / packages / prettyhtml-formatter / index.js View on Github external
function isVoid(node) {
  return voids.indexOf(node.tagName) !== -1
}

html-void-elements

List of HTML void tag names

MIT
Latest version published 12 months ago

Package Health Score

68 / 100
Full package analysis

Popular html-void-elements functions