Possible duplicate:
What!! (not) in JavaScript?
I came across a code that uses !! , which means itβs logical not for me.
app.isArray = Array.isArray || function(object) { return !!(object && object.concat && object.unshift && !object.callee); };
What is the difference between use !! and not using?
(my guess !! converts the result to a Boolean type. If my assumption is true, why is this so?)
source share