I came across the following code snippet and am confused about what the not: is doing. Is it a tag? If so, are there any other uses for it?
var foo = {
not: function(bool) { return !bool; }
}
Can you provide me with a possible use scenario for this kind of syntax?