Skip to content

Instantly share code, notes, and snippets.

Avatar
🐢
Out of office.

jorenvo

🐢
Out of office.
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am jorenvo on github.
  • I am jvo (https://keybase.io/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 Object.prototype.toString.call(thing) === to_string_type;
}