A simple JS boilerplate to use document.querySelector with $
npm i --save @andre_scalco/selector
import { $ } from '@andre_scalco/selector';
$('.your-document-item').some().dom(),method();
...
import { _$ } from '@andre_scalco/selector';
let items = _$('.ul li');
[].filter.call(items, (obj) => {
// do your stuff here
});
...