(object: AnyObject)
| 45 | * Extract descriptions from an object. |
| 46 | */ |
| 47 | export function extractDescriptions(object: AnyObject) { |
| 48 | return { |
| 49 | description: object.description, |
| 50 | 'x-gitbook-description-html': |
| 51 | 'x-gitbook-description-html' in object |
| 52 | ? object['x-gitbook-description-html'] |
| 53 | : undefined, |
| 54 | }; |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Resolve the first example from an object. |
no outgoing calls
no test coverage detected