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

Function styleKeyValueArraySet

packages/core/src/render3/instructions/styling.ts:761–764  ·  view source on GitHub ↗
(keyValueArray: KeyValueArray<any>, key: string, value: any)

Source from the content-addressed store, hash-verified

759 * @param value The value to set.
760 */
761export function styleKeyValueArraySet(keyValueArray: KeyValueArray<any>, key: string, value: any) {
762 ngDevMode && warnInvalidStylePropValue(key, value);
763 keyValueArraySet(keyValueArray, key, unwrapSafeValue(value));
764}
765
766/**
767 * Class-binding-specific function for setting the `value` for a `key`.

Callers 1

styleStringParserFunction · 0.85

Calls 3

keyValueArraySetFunction · 0.90
unwrapSafeValueFunction · 0.90

Tested by

no test coverage detected