Walkobj
Very simple little module that walks an object recursively and calls a function on every object.
var walkobj = ; var obj = /**whatever you want*/; ;
type
is whatever is returned by the following function:
{ return ObjectprototypetoString1}
In essence: string
, array
, date
, regexp
, boolean
, function
, number
, undefined
, null
.
The function is exposed on the walkobj function as walkobj.toType