Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 464 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 464 Bytes

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
});
...