JS: Global Functions sans Property Key “prototype”

By Xah Lee. Date: . Last updated: .
// all global objects that are function type, and do not have string key "prototype"

console.log((Reflect.ownKeys(globalThis)).filter((x) => ((typeof globalThis[x] === "function") && !(Object.hasOwn(globalThis[x], "prototype")))));
/*
[
  "parseFloat",
  "parseInt",
  "Proxy",
  "decodeURI",
  "decodeURIComponent",
  "encodeURI",
  "encodeURIComponent",
  "escape",
  "unescape",
  "eval",
  "isFinite",
  "isNaN"
]
*/