deselect
v1.1.0
Published
Returns a selector that excludes all passed selectors
Downloads
3
Readme
deselect
Returns a selector that excludes all passed selectors
Installation
Install via npm:
$ npm i deselect
Usage
var deselect = require('deselect');
deselect(['p','a','h2']);
// returns *:not(p),*:not(a),*:not(h2)
deselect('p');
// returns *:not(p)
deselect();
// returns ''
deselect('p,a,h2');
// returns *:not(p),*:not(a),*:not(h2)