dist/ng-image-upload-template-in.js
function(file) {
        var type =  '|' + file.type.slice(file.type.lastIndexOf('/') + 1) + '|';
        return '|jpg|png|jpeg|bmp|gif|'.indexOf(type) !== -1;
      }
function(file) {
        var type =  '|' + file.type.slice(file.type.lastIndexOf('/') + 1) + '|';
        return '|jpg|png|jpeg|bmp|gif|'.indexOf(type) !== -1;
      }
function ( file ) { var type = '|' + file . type . slice ( file . type . lastIndexOf ( '/' ) + 1 ) + '|' ; return '|jpg|png|jpeg|bmp|gif|' . indexOf ( type ) !== - 1 ; }
Checks if the item is jpg, png, jpeg, bmp or a gif
Checks if the item is jpg png jpeg bmp or a gif