truly esoteric javascript.
This is a dev post classified by Jev as Languages & runtimes (a tutorial), kept by the Dev Radar because it carries real work, not commentary.
truly esoteric javascript. for advanced js coders. see if you tell why the error. i asked ai. here's the code /* xah_get_proto_chain(obj) Take any object, returns a array, the order of elements shows the proto chain. First element is obj itself, last element is root. http ://xahlee.info/js/js_show_prototype_chain.html Version: 2020-06-25 */ const xah_get_proto_chain = (x) => { const result = [x]; let t = x; while ((t = Reflect.getPrototypeOf(t)) !== null) result.push(t); return result; }; console.log(xah_get_proto_chain(new Date())); // [ 2026-09-14T19:48:20.681Z, {}, [Object: null pro
Posted by Xah Lee (8.6k followers) 4 days ago · 2 likes · 301 views · view the original post on X. Kept by the Dev Radar as Languages & runtimes.
More dev work like this
- JavaScript tip. — @xah_lee
- This Week in Effect #136 — @EffectTS_
- [Call for testing] trim-paths RFC 3127 — @rustaceans_rs
- No, the sandbox isn't dead, we just migrated from Vite to OJ 🦀 — @raphamorims
- Apple’s programming language is getting serious about Linux. — @twtayaan
- The Golden Spike, and Resurrecting the Vale(n) Programming Language — @rustaceans_rs
- Why TeX is Slow and How We Rebuilt It in Pure Rust — @xah_lee
- In the next ty release, we have full support for recursive implicit type aliases (at… — @charliermarsh
Every post is read and classified by Jev (TypeSafe): what it is, which market it belongs to, and whether the link is a real tool. 12.2k posts from 4.7k X accounts over the last 21 days, 1.4k tools, 12 markets. Collected every 5 minutes, fully re-ranked every hour — last update 2026-09-19 18:39 UTC. Full method.