Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ampproject/amphtml
/ parseBooleanAttribute
Function
parseBooleanAttribute
src/core/dom/index.js:483–485 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
481
* @
return
{boolean|undefined}
482
*/
483
export
function
parseBooleanAttribute(s) {
484
return
s == null ? undefined : s !==
'false'
;
485
}
486
487
/**
488
* @param {Window} win
Callers
1
parsePropDefs
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected