User:Rye Greenwood/sandbox.js

function isES6 { try { new Function("(a = 0) => a"); return typeof [].includes !== 'undefined'; } catch(e) { return false; } } console.log("isES6", isES6);