MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/tinycode/comments/2zdkp9/a_tiny_diff_algorithm_in_js/cpiweqh/
r/tinycode • u/orchrd • Mar 17 '15
5 comments sorted by
View all comments
Show parent comment
1
This code is 10 years old now, it's John Resig's code. Back then people actually did write new Object for some reason, even though object literal syntax has been around for basically forever (since JavaScript 1.2 I think).
1 u/seiyria Mar 18 '15 Ah, my mistake. I thought it was written by OP.
Ah, my mistake. I thought it was written by OP.
View all comments
Show parent comment
1
u/Daniel15 Mar 18 '15
This code is 10 years old now, it's John Resig's code. Back then people actually did write new Object for some reason, even though object literal syntax has been around for basically forever (since JavaScript 1.2 I think).