Plato on Github
Report Home
src/data/var/acceptData.js
Maintainability
85.31
Lines of code
19
Difficulty
7.43
Estimated Errors
0.04
Function weight
By Complexity
By SLOC
define( function() { "use strict"; /** * Determines whether an object can have data */ return function( owner ) { // Accepts only: // - Node // - Node.ELEMENT_NODE // - Node.DOCUMENT_NODE // - Object // - Any return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); }; } );