(propertyDesc: any)
| 96 | } |
| 97 | |
| 98 | export 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 | |
| 110 | export const isWebWorker: boolean = |
| 111 | typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope; |
no outgoing calls
no test coverage detected
searching dependent graphs…