2.0.3 • Published 8 years ago

first-child-shim v2.0.3

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
8 years ago

first-child-shim

Shims firstChild method in a node environment if it is missing.

Install

npm i first-child-shim

Usage

var firstChildShim = require('first-child-shim')
var html = require('bel')
var element = firstChildShim(html`<ul><li>FOMO</li><li>YOLO</li></ul>`)
var firstKid = element.firstChild() // returns <li>FOMO</li>

Test

npm test

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.0

8 years ago