Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ampproject/amphtml
/ HAS_SELECTOR
Function
HAS_SELECTOR
src/preact/parse-props.js:97–97 ·
view source on GitHub ↗
(def)
Source
from the content-addressed store, hash-verified
95
* @
return
{boolean}
96
*/
97
export
const
HAS_SELECTOR = (def) => typeof def ===
'string'
|| !!def.selector;
98
99
/**
100
* @param {Node} node
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected