nl_tokens: 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 )
pl_tokens: function isNode ( node , <mask> ) { var isNode = true var requiredProps = [ 'attributes' , 'children' , 'type' ] requiredProps . some ( function ( prop ) { if ( ! node [ prop ] ) { isNode = false return true } } ) if ( type && isNode ) return node . type === type return isNode }