(value)
| 372 | |
| 373 | // Returns true if the given value is an Observable FileAttachment. |
| 374 | function isFileAttachment(value) { |
| 375 | return ( |
| 376 | value && |
| 377 | typeof value.name === "string" && |
| 378 | typeof value.url === "function" && |
| 379 | typeof value.arrayBuffer === "function" |
| 380 | ); |
| 381 | } |
| 382 | |
| 383 | // Arquero tables have a `toArrowBuffer` function |
| 384 | function isArqueroTable(value) { |