matchgame

1.0.0 • Public • Published

Classes

wordMatch

Functions

isNode(o)Boolean

Check if is DOM Node

isElement(o)Boolean

Check if is HTMLELement

getParent(el, className)HTMLElement

Get first parent to have a give className

wordMatch

Kind: global class

new wordMatch()

Create a word match game

isNode(o) ⇒ Boolean

Check if is DOM Node

Kind: global function Returns: Boolean - true if is DOM Node

Param Type
o *

isElement(o) ⇒ Boolean

Check if is HTMLELement

Kind: global function Returns: Boolean - true if is Element

Param Type
o *

getParent(el, className) ⇒ HTMLElement

Get first parent to have a give className

Kind: global function Returns: HTMLElement - parent element having the className

Param Type Description
el HTMLElement child element
className String className to look for

Readme

Keywords

Package Sidebar

Install

npm i matchgame

Weekly Downloads

1

Version

1.0.0

License

none

Unpacked Size

25 kB

Total Files

4

Last publish

Collaborators

  • ctrlaltdev