mirror of
https://github.com/denoland/deno.git
synced 2024-12-13 11:02:19 -05:00
8 lines
321 B
JavaScript
8 lines
321 B
JavaScript
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||
|
// Node's implementation checks for a symbol they put in the blob prototype
|
||
|
// Since the implementation of Blob is Deno's, the only option is to check the
|
||
|
// objects constructor
|
||
|
export function isBlob(object) {
|
||
|
return object instanceof Blob;
|
||
|
}
|