MCPcopy
hub / github.com/ampproject/amphtml / toString

Function toString

third_party/subscriptions-project/swg.js:3014–3020  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

3012}
3013
3014function toString(val) {
3015 // Do check equivalent to `val instanceof Element` without cross-window bug
3016 if (val && val.nodeType == 1) {
3017 return val.tagName.toLowerCase() + (val.id ? '#' + val.id : '');
3018 }
3019 return /** @type {string} */ (val);
3020}
3021
3022/**
3023 * Copyright 2018 The Subscribe with Google Authors. All Rights Reserved.

Callers 1

assertFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected