Skip to content

Instantly share code, notes, and snippets.

Out of office.


Out of office.
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jorenvo on github.
  • I am jvo ( on keybase.
  • I have a public key ASC1RIxSg2VD2C-EfzespBjcbYf95AZ2s_O2U9PzJ2BKLAo

To claim this, I am signing this object:

View rgrep.js
// requires a little bit of extra work to make it pretty, but works
// allows to recursively search js objects or arrays for a property name
// useful when dealing with big js objects you're unfamiliar with
var visited = [];
function is_type (thing, type) {
var to_string_type = '[object ' + type + ']';
return === to_string_type;