MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / set

Method set

packages/core/data/observable/index.ts:527–536  ·  view source on GitHub ↗

* Updates the specified property with the provided value.

(name: string, value: any)

Source from the content-addressed store, hash-verified

525 * Updates the specified property with the provided value.
526 */
527 public set(name: string, value: any): void {
528 const currentValue = this._map[name];
529 if (currentValue === value) {
530 return;
531 }
532
533 const newValue = WrappedValue.unwrap(value);
534 this._map[name] = newValue;
535 this.notifyPropertyChange(name, newValue, currentValue);
536 }
537}
538
539function defineNewProperty(target: ObservableFromObject, propertyName: string): void {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.80
notifyPropertyChangeMethod · 0.80

Tested by

no test coverage detected