4 ms·
Open your browser console and find an input that works: function test (a) { try { return !!(typeof a === 'undefined' && a(1) && a[2]) } cat
by idbehold 9y ago
Open your browser console and find an input that works:
function test (a) {
try {
return !!(typeof a === 'undefined' && a(1) && a[2])
} catch (e) {
return false
}
}
It is possible to get it to return true.
- Zirro 9y agoI've found a solution which I presume is the one you have in mind, though it's worth noting that it doesn't work in Firefox at the moment. Feel free to add a link with your answer later on, just in case you came up with something different.