From db193f5d46860393521ad38f90a554968b2ba98a Mon Sep 17 00:00:00 2001 From: coderzzp Date: Tue, 10 Oct 2017 10:04:03 -0500 Subject: [PATCH] chore:replace indexOf with includes (#90) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 51e57f1..309bfe9 100644 --- a/index.js +++ b/index.js @@ -119,5 +119,5 @@ function extendType(original, extend) { } function checkEnable(types, type) { - return types.indexOf(type) >= 0; + return types.includes(type); }