( gen: CodeGen, data: Name, property: Name | string, ownProperties?: boolean )
| 43 | } |
| 44 | |
| 45 | export function propertyInData( |
| 46 | gen: CodeGen, |
| 47 | data: Name, |
| 48 | property: Name | string, |
| 49 | ownProperties?: boolean |
| 50 | ): Code { |
| 51 | const cond = _`${data}${getProperty(property)} !== undefined` |
| 52 | return ownProperties ? _`${cond} && ${isOwnProperty(gen, data, property)}` : cond |
| 53 | } |
| 54 | |
| 55 | export function noPropertyInData( |
| 56 | gen: CodeGen, |
no test coverage detected
searching dependent graphs…