jscd playground

Paste two snippets of JavaScript, TypeScript or React. See whether they are clones, and what the detector compares.

Load an example

Snippet A

Snippet B

What the detector compares

Each function rewritten in one canonical form: names become v0, v1…, properties p0, p1…, literals lose their values, comments and types disappear. Marked code is what still differs.

Snippet A

          
Snippet B