This answers your question perfectly https://stackoverflow.com/a/264037/1561922
!!!x is probably inversing a boolean conversion !!x:
var myBool = Boolean("false"); // == true
var myBool = !!"false"; // == true
"Any string which isn't empty will evaluate to true"
So !!!"false"; // == false
This question is NOT a joke. Node.js (downloaded 5 days ago) uses this in Assert.js for example:
function ok(value, message) {
if (!!!value) fail(value, true, message, '==', assert.ok);
}
assert.ok = ok;
EDIT: I think they did it for code readability reasons out of habit, because !value already suffices.
EDIT: Node changed it. I have no idea why my version of Node.js that was downloaded 5 days ago is still with the !!!value instead of the !value in GitHub.
EDIT: This is the reason why.