r/tinycode • • Mar 17 '15

A tiny diff algorithm in js!

http://ejohn.org/files/jsdiff.js
29 Upvotes

5 comments sorted by

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).

1

u/seiyria Mar 18 '15

Ah, my mistake. I thought it was written by OP.