SelectJs :JavaScript library

Selecting DOM elements
var elem=select('#div');//Select one element
elem.style.background="yellow";
var elems=select('.div');//Select all elements
elems.forEach(function( el ) {
    el.style.background="green";
})
var elem=select('.div',2);//Select the nth(2) element 
elem.style.background="yellow";
var elems=select('.div',2,4);//Select the nth(2) and nth(4) element
elems.forEach(function( el ) {
    el.style.background="green";
})
var elems=select('#div','.div',2,'.div2',3);//Select the elemnt "#div" and the nth(2) element from class ".div" and nth(3) element from class ".div2"
elems.forEach(function( el ) {
    el.style.background="green";
})
var elems=select('.div',2,3,'.div2',3,4);//Select the nth(2),nth(3) element from class ".div" and nth(3),nth(4) element from class ".div2"
elems.forEach(function( el ) {
    el.style.background="green";
})