$ cnpm install is-blob
Check if a value is a
Blob
- File-like object of immutable, raw data
Blob
is only available in the browser. In Node.js, it always returns false
.
$ npm install is-blob
const isBlob = require('is-blob');
isBlob(new Blob(['<h1>Unicorns</h1>'], {type: 'text/html'}));
//=> true
Copyright 2013 - present © cnpmjs.org