lib/browser.js
function isImage(headers){
    var regexImage = /image\//i;
    var contentType = headers ?  headers['content-type'] : '';
    return regexImage.test(contentType);
}
function isImage(headers){
    var regexImage = /image\//i;
    var contentType = headers ?  headers['content-type'] : '';
    return regexImage.test(contentType);
}
function isImage ( headers ) { var regexImage = / image\/ / i ; var contentType = headers ? headers [ 'content-type' ] : '' ; return regexImage . test ( contentType ) ; }
Check if the content of the HTTP body is an image

@param {Object} headers -
@return {Boolean}
@api private
Check if the content of the HTTP body is an image