get nodes
Returns an array of all the elements within a dom element, including the dom element itself.
Installation
npm install get-nodes
How to use
Require get-nodes:
var getNodes = ;
Given this DOM structure:
To retrieve all the elements in section:
;// [// <section>,// <div>,// <div>,// <div>// ]
LICENSE
MIT