deku-component-is-node
Determine if an object is a valid Deku node. Useful for testing.
Example
const Component = { } const mock = const node = mock //=> returns `true` //=> returns `true` //=> returns `false`
API
isNode(node, [type])
Returns true
if node
is a valid Deku node. If type
is specified,
it will ensure that type is strictly equal. (whether that is a Component
or a String
element name)
License
MIT