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

Function isPropertyWritable

packages/zone.js/lib/common/utils.ts:98–108  ·  view source on GitHub ↗
(propertyDesc: any)

Source from the content-addressed store, hash-verified

96}
97
98export function isPropertyWritable(propertyDesc: any) {
99 if (!propertyDesc) {
100 return true;
101 }
102
103 if (propertyDesc.writable === false) {
104 return false;
105 }
106
107 return !(typeof propertyDesc.get === 'function' && typeof propertyDesc.set === 'undefined');
108}
109
110export const isWebWorker: boolean =
111 typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope;

Callers 2

patchPrototypeFunction · 0.85
patchMethodFunction · 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…