Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ampproject/amphtml
/ HAS_MEDIA
Function
HAS_MEDIA
src/preact/base-element.js:87–87 ·
view source on GitHub ↗
(def)
Source
from the content-addressed store, hash-verified
85
* @
return
{boolean}
86
*/
87
const
HAS_MEDIA = (def) => !!def.media;
88
89
/**
90
* @param {AmpElementProp} def
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected