Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

check if type is blob javascript

You can test if it is an instanceof Blob like this:

var MyBlob = new Blob(['test text'], {type : 'text/plain'});
console.log(MyBlob instanceof Blob) // true
jsFiddle: http://jsfiddle.net/jfriend00/5xkgd/

This will work for things that inherit from Blob also.
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to get the max value of two variables in math 
Javascript :: get an html img tag from a string 
Javascript :: javascript form submit on button click check if required fields not empty 
Javascript :: angular dynamic class 
Javascript :: react array find index 
Javascript :: javascript while 
Javascript :: how to validate a string using regular expression in javascript 
Javascript :: : Cannot set the body fields of a Request with content-type "application/json". 
Javascript :: add item to list javascript 
Javascript :: jquery format date 
Javascript :: scroll element by javascript 
Javascript :: linear gradient reactjs 
Javascript :: moment js react 
Javascript :: jquery check if has class 
Javascript :: javascript write all the prime numbers from 1 to 100 
Javascript :: month list javascript 
Javascript :: get current time epoch javascript 
Javascript :: compare two arrays and return the difference javascript 
Javascript :: for htmlcollection javascript 
Javascript :: prevstate in usestate 
Javascript :: javascript get intersection of two arrays 
Javascript :: search inside a string javascript 
Javascript :: iseet jquery 
Javascript :: inline confirm box javascript 
Javascript :: drupal 8 check if current page is node 
Javascript :: button in javascript 
Javascript :: gulp synchronous tasks 
Javascript :: js read from json2 
Javascript :: delete all node_modules folders recursively windows 
Javascript :: discord.js arguments 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =