Skip to content
This repository

find objects in your runtime object model

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 CONTRIBUTING.md
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 karma.conf.js
Octocat-spinner-32 package.json
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.