Skip to content
This repository has been archived by the owner on Mar 8, 2019. It is now read-only.

ianstormtaylor/previous-sibling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

previous-sibling

Get the previous sibling of an el, optionally filtered by a selector.

Installation

$ component install ianstormtaylor/previous-sibling

Example

var previous = require('previous-sibling');
var head = previous(document.body); // document.head

License

MIT

About

Get the previous sibling of an element.

Resources

Stars

Watchers

Forks

Packages

No packages published