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

yields/to-element

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

to-element

get a Node from value.

Installation

Install with component(1):

$ component install yields/to-element

Example

toElement(document.body);
toElement(dom('.baz'));
toElement($('.baz'));
toElement({ el: query('.baz') });
toElement('<div class=baz>');
toElement('.baz');

API

toElement(value)

get a Node from value.

License

MIT

About

get a node from value.

Resources

Stars

Watchers

Forks

Packages

No packages published