Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-blob

sindresorhus873.3kMIT3.0.0TypeScript support: included

Check if a value is a Blob

blob, object, file, raw, data, immutable, browser, check, detect, is, type

readme

is-blob

Check if a value is a Blob - File-like object of immutable, raw data

Install

npm install is-blob

Usage

import isBlob from 'is-blob';

isBlob(new Blob(['<h1>Unicorns</h1>'], {type: 'text/html'}));
//=> true
  • is - Type check values