Firefox Browser Add-ons
  • Extensions
  • Themes
    • for Firefox
    • Dictionaries & Language Packs
    • Other Browser Sites
    • Add-ons for Android
Log in
Preview of jsdiff.diff(...)

jsdiff.diff(...) by A. Block

Compare objects in memory with jsdiff.diff(old, new) devtools function

0 (0 reviews)0 (0 reviews)
1 User1 User
Download Firefox and get the extension
Download file

Extension Metadata

Screenshots
About this extension
An extension for developers that enhances the console API by incorporating the ability to compare objects and adds a JSDiff tab (parallel to Elements, Network panels) within your dev-tools for viewing the results.

Motivation:
Track object mutations during runtime and/or while debugging with intention to find expected or unexpected changes.

Note: this extension utilises content scripts, so after immediate installation or an update, make sure to refresh the inspected tab before using its functionality.

API:

// compare left and right arguments
jsdiff.diff(
{ a: 1, b: 1, c: 3 },
{ a: 1, b: 2, d: 3 }
);

// with a single argument behaves the same as `jsdiff.diffPush`
jsdiff.diff(Date.now());

// shifts sides - previous right side becomes left, new value becomes right
jsdiff.diffPush(Date.now());

// update left side only
jsdiff.diffLeft(Date.now());

// update right side only
jsdiff.diffRight(Date.now());


Read more
Developer comments
Extension for Chrome can be found here: https://chromewebstore.google.com/detail/consolediff/iefeamoljhdcpigpnpggeiiabpnpgonb
Rated 0 by 0 reviewers
Log in to rate this extension
There are no ratings yet

Star rating saved

5
0
4
0
3
0
2
0
1
0
No reviews yet
Permissions and data

Required permissions:

  • Extend developer tools to access your data in open tabs
  • Access your data for all websites

Optional permissions:

  • Access your data for all websites

Data collection:

  • The developer says this extension doesn't require data collection.
Learn more
More information
Add-on Links
  • Homepage
  • Support site
  • Copy add-on ID
Version
3.4.1
Size
91.1 KB
Last updated
6 hours ago (May 23, 2026)
Related Categories
  • Web Development
License
MIT License
Version History
  • See all versions
Add to collection
Report this add-on
Go to Mozilla's homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Browsers

  • Desktop
  • Mobile
  • Enterprise

Products

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike License v3.0 or any later version.