lib/index.js
function image(filename) {
  if (!filename) return;
  var ext = filename.split('.')[filename.split('.').length - 1];
  return ~extensions.join().indexOf(ext);
}
function image(filename) {
  if (!filename) return;
  var ext = filename.split('.')[filename.split('.').length - 1];
  return ~extensions.join().indexOf(ext);
}
function image ( filename ) { if ( ! filename ) return ; var ext = filename . split ( '.' ) [ filename . split ( '.' ) . length - 1 ] ; return ~ extensions . join ( ) . indexOf ( ext ) ; }
See if filename is image.
See if filename is image .