MCPcopy Index your code
hub / github.com/angular/angular / isAnimationProp

Function isAnimationProp

packages/core/src/render3/util/attrs_utils.ts:97–102  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

95}
96
97export function isAnimationProp(name: string): boolean {
98 // Perf note: accessing charCodeAt to check for the first character of a string is faster as
99 // compared to accessing a character at index 0 (ex. name[0]). The main reason for this is that
100 // charCodeAt doesn't allocate memory to return a substring.
101 return name.charCodeAt(0) === CharCode.AT_SIGN;
102}
103
104/**
105 * Merges `src` `TAttributes` into `dst` `TAttributes` removing any duplicates in the process.

Callers 2

isPropertyValidFunction · 0.90
setUpAttributesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…