Check function name in Javascript
<p>Here is my code:</p>

<pre><code>object = {'name' : String}
object = {'age' : Number}
typeof object.name // 'function'
typeof object.age // 'function'
</code></pre>

<p>Is it possible to check that object.name is a String and object.age is a Number?</p>

<p>Using typeof only gives me back 'function'.</p>
