Link Search Menu Expand Document

Unist-util-select

API

matches

select.matches(selector, node)

var matches = require('unist-util-select').matches
matches('strong, em', u('strong', [u('text', 'important')])) // => true
matches('[lang]', u('code', {lang: 'js'}, 'console.log(1)')) // => true