So I understand that $parse creates a function from a string, like $parse('name') will return the name property from a given object. My question is if it can somehow also return the type of said property, something like:
var getType = $parse('typeof name');
var test = getType({name: 'Name1'}); //should be 'string'