lib/picklr.js
function (stats, p) {
    let result = stats.isFile();

    if (result) {
      const ext = path.extname(p);
      result = this.includeExts.indexOf(ext) !== -1;
    }

    return result;
  }
function (stats, p) {
    let result = stats.isFile();

    if (result) {
      const ext = path.extname(p);
      result = this.includeExts.indexOf(ext) !== -1;
    }

    return result;
  }
File type determination.

@private
@returns true if given path is a file.