blob: e00f7538b3961c0a529adf0ea6ee70b72f83ad68 [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001define( function() {
2
3"use strict";
4
5/**
6 * Determines whether an object can have data
7 */
8return function( owner ) {
9
10 // Accepts only:
11 // - Node
12 // - Node.ELEMENT_NODE
13 // - Node.DOCUMENT_NODE
14 // - Object
15 // - Any
16 return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
17};
18
19} );