Check if a selector has combinator.
$ npm install has-css-combinator
var hasCombinator = require('has-css-combinator')
hasCombinator('.foo+.bar') // true
hasCombinator('.foo + .bar') // true
hasCombinator('.foo ~ .bar') // true
hasCombinator('.foo > .bar') // true
hasCombinator('.foo') // false
hasCombinator('p.foo') // false
The MIT License (MIT)
Copyright (c) 2015 Masaaki Morishita