( gen: CodeGen, data: Name, property: Name | string, ownProperties?: boolean )
| 53 | } |
| 54 | |
| 55 | export function noPropertyInData( |
| 56 | gen: CodeGen, |
| 57 | data: Name, |
| 58 | property: Name | string, |
| 59 | ownProperties?: boolean |
| 60 | ): Code { |
| 61 | const cond = _`${data}${getProperty(property)} === undefined` |
| 62 | return ownProperties ? or(cond, not(isOwnProperty(gen, data, property))) : cond |
| 63 | } |
| 64 | |
| 65 | export function allSchemaProperties(schemaMap?: SchemaMap): string[] { |
| 66 | return schemaMap ? Object.keys(schemaMap).filter((p) => p !== "__proto__") : [] |
no test coverage detected
searching dependent graphs…