1.0.1 • Published 6 years ago

@andre_scalco/selector v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

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