String.prototype.js 296 B

1234567891011
  1. try {
  2. assert(typeof Object.getPrototypeOf("") === "object");
  3. assert(Object.getPrototypeOf("").valueOf() === '');
  4. assert(typeof String.prototype === "object");
  5. assert(String.prototype.valueOf() === '');
  6. console.log("PASS");
  7. } catch (err) {
  8. console.log("FAIL: " + err);
  9. }