Javascript idioms
From Zoltan Kochan, author of pnpm Double exclamation Prefixing anything with !! converts it to a boolean. var foo = 0 console.log(!!foo) //> false Essentially it is a shorter way to write Boolean(foo). Converting arguments to array The arguments object can be used to…