@andre_scalco/selector
v1.0.1
Published
A js boilerplate to use document.querySelector
Downloads
3
Maintainers
Readme
Selector
A simple JS boilerplate to use document.querySelector with $
Installation
NPM
npm i --save @andre_scalco/selector
Usage
Single item - $
import { $ } from '@andre_scalco/selector';
$('.your-document-item').some().dom(),method();
...
Multiple items - _$
import { _$ } from '@andre_scalco/selector';
let items = _$('.ul li');
[].filter.call(items, (obj) => {
// do your stuff here
});
...