From 3ac24677721beeba2a5f37cfeaaa412d7772de67 Mon Sep 17 00:00:00 2001 From: nick spragg Date: Mon, 11 Apr 2016 21:05:53 +0100 Subject: [PATCH] Fix: correct arguments to array conversion --- src/filehound.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filehound.js b/src/filehound.js index 130a597..4d00c9e 100644 --- a/src/filehound.js +++ b/src/filehound.js @@ -64,7 +64,7 @@ class FileHound { } static any() { - return bluebird.all(arguments).reduce(flatten, []); + return bluebird.all(Array.prototype.slice.call(arguments)).reduce(flatten, []); } _getFiles(dir) {