Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
find objects in your runtime object model
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib Update finder_min.js
test custom filter tests
.gitignore gitignore
.travis.yml travis
CONTRIBUTING.md CONTRIBUTING.md
LICENSE
README.md
karma.conf.js
package.json baby's first test

README.md

Build Status

Waldo

I got frustrated trying to find objects in runtime object models – so I created a utility to do it. You search for objects using a find utility. Then you can click on the retrieved objects to inspect them.

e.g. in the console do this kind of thing

//global search for all properties named 'home'
find.byName('home');

//search jquery for all properties named 'map'
find.byName('map', {obj: jQuery, path: 'jQuery'})

//global search for all property names containing 'box' as a substring
find.byNameContains('box');

//global search for all arrays
find.byType(Array)

//all instances with value 1000
find.byValue(1000);

//all falsey values
find.byValueCoerced(false);

//search with a custom function
//e.g. all truthy properties named 'a'...
find.custom(function(searchTerm, obj, prop) {return (obj[prop] == true) && (prop == 'a')});

circular references

Waldo now detects circular references and cites them:

var a = {b: 3};
var c = {d: a};
find.byName('d');

will log...

global.c.d -> (<global.a>) Object {b: 3} 

Thanks to John-David Dalton for infrastructure improvements.

Something went wrong with that request. Please try again.