diff --git a/src/printer-php.js b/src/printer-php.js index 1e54dccf3a53..967453efe561 100644 --- a/src/printer-php.js +++ b/src/printer-php.js @@ -11,12 +11,7 @@ const softline = docBuilders.softline; // polyfill for node 4 function includes(array, val) { - for (let i = 0, len = array.length; i < len; i++) { - if (array[i] === val) { - return true; - } - } - return false; + return array.indexOf(val) !== -1; } function genericPrint(path) {