this embarrassing defeat i experienced in fantasy football on monday can't take away from the fact that
THE LIONS ARE IN THE PLAYOFFS, BAYBEE LETS GOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
I hand-coded a deep copy algorithm in JavaScript! It doesn't ever blow up the call stack and it copies property descriptors!
Everyone look at https://github.com/calebmsword/parsec/blob/main/example/example-utils/clone-deep.js
and tell me how cool I am!!!!!!!!!
javascript crimes
The following causes a runtime error:
function factory(callback) {
callback();
return () => console.log(
"crime performed");
}
const func = factory(() => {
func();
});
// TypeError: func is not a function
But the following works:
function factory(callback) {
callback();
return () => console.log(
"crime performed");
}
const func = factory(() => {
setTimeout(() => func(), 0);
});
// "crime performed"
Movie/animation/anime fan. Videogame enjoyer. Food liker. zss sux propagandist. Physics and mathematics hobbyist. Software Engineer. Professional post malone hater. I would not be surprised if I had autism + adhd. I like animals that wear cowboy hats.
he/him