(key: string, item: any)
| 18 | * @returns Either an empty object or an object with the content provided. |
| 19 | */ |
| 20 | const optionalSpread = (key: string, item: any) => |
| 21 | item !== undefined && !!Object.values(item)?.length ? { [key]: item } : {}; |
| 22 | |
| 23 | const OPEN_GRAPH_PROPERTIES: OpenGraphProperty[] = [ |
| 24 | { |
no test coverage detected
searching dependent graphs…