MCPcopy Create free account
hub / github.com/observablehq/framework / isFileAttachment

Function isFileAttachment

src/client/stdlib/duckdb.js:374–381  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

372
373// Returns true if the given value is an Observable FileAttachment.
374function 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
384function isArqueroTable(value) {

Callers 1

insertSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected