Skip to content

Commit 7349971

Browse files
author
Jose Zamora
committed
use Array.isArray()
1 parent 25aa3c2 commit 7349971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/suppressionList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module.exports = function(client) {
5858
return;
5959
}
6060

61-
if(recipients.constructor !== Array) {
61+
if(!Array.isArray(recipients)) {
6262
recipients = [recipients];
6363
}
6464

0 commit comments

Comments
 (0)