This repository has been archived by the owner. It is now read-only.
get the children of an element
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
.jshintrc
.tern-project
component.json
license
readme.md

readme.md

children

inspired by jQuery

install

component install ramitos/children

api

var children = require('children')

var anchors = children(document.body, 'a')

var hrefs = anchors.map(function (anchor) {
  return anchor.href
})

var body_childrens = children(document.body)

license

MIT