Categories

Developer

A. Block

jsdiff.diff(...) v3.0.5

  • rating
  • rating
  • rating
  • rating
  • rating
0 (0 reviews)
Compare objects in memory with jsdiff.diff(old, new) devtools function jsdiff.diff(...) jsdiff.diff(...) jsdiff.diff(...)

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.

Note: before using, immediately after fresh installation, - make sure to refresh inspected tab or restart browser.

API:
// compare left and right
jsdiff.diff(left, right);

// shorthand for jsdiff.diffPush(next)
jsdiff.diff(next);

// update object on the left side only
jsdiff.diffLeft(left);

// update object on the right side only
jsdiff.diffRight(right);

// shifts sides, right becomes left, next becomes right
jsdiff.diffPush(next);

Read more at: https://github.com/zendive/jsdiff