|
Last change
on this file since ba17441 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
561 bytes
|
| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * Checks if the given value is a Blob.
|
|---|
| 3 | *
|
|---|
| 4 | * This function tests whether the provided value is an instance of `Blob`.
|
|---|
| 5 | * It returns `true` if the value is an instance of `Blob`, and `false` otherwise.
|
|---|
| 6 | *
|
|---|
| 7 | * @param {unknown} x - The value to test if it is a Blob.
|
|---|
| 8 | * @returns {x is Blob} True if the value is a Blob, false otherwise.
|
|---|
| 9 | *
|
|---|
| 10 | * @example
|
|---|
| 11 | * const value1 = new Blob();
|
|---|
| 12 | * const value2 = {};
|
|---|
| 13 | *
|
|---|
| 14 | * console.log(isBlob(value1)); // true
|
|---|
| 15 | * console.log(isBlob(value2)); // false
|
|---|
| 16 | */
|
|---|
| 17 | declare function isBlob(x: unknown): x is Blob;
|
|---|
| 18 |
|
|---|
| 19 | export { isBlob };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.