logoalt Hacker News

stephbookyesterday at 5:44 PM1 replyview on HN

Just call "Object.freeze()" before "return" in your function.


Replies

cdmckayyesterday at 7:21 PM

That only goes one level deep so it’s not much of a guarantee