MCPcopy Create free account
hub / github.com/angular/angular / containsAttributes

Function containsAttributes

packages/platform-browser/src/browser/meta.ts:194–196  ·  view source on GitHub ↗
(tag: MetaDefinition, elem: HTMLMetaElement)

Source from the content-addressed store, hash-verified

192}
193
194function containsAttributes(tag: MetaDefinition, elem: HTMLMetaElement): boolean {
195 return Object.keys(tag).every((key) => elem.getAttribute(getMetaKeyMap(key)) === tag[key]);
196}
197
198function getMetaKeyMap(prop: string): string {
199 return META_KEYS_MAP[prop] || prop;

Callers 1

_getOrCreateElementMethod · 0.85

Calls 3

getMetaKeyMapFunction · 0.85
keysMethod · 0.65
getAttributeMethod · 0.65

Tested by

no test coverage detected