title: What is Boolean.valueOf in JavaScript
body: <p>Typeof of Boolean.valueOf is a function but what does it do? Why object versions of primitives have these methods like Array.valueOf? It's not the same as for example Boolean.prototype.valueOf...</p>
  
  <p>Also what's the point of Boolean.toString() it just returns this: "function Boolean() { [native code] }". Also other objects like Array, Number have it...</p>