I have simple Vue instance:
<html>
<body>
<div id="container">
<input type="text" id="container" placeholder="enter text" v-model="value">
<p>{{ value }}</p>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/0.11.10/vue.min.js"></script>
<script>
new Vue({
el: '#container',
data: {
value: '',
list: []
},
created: function() {
console.log(typeof this.list); // i would like to determine type of underlaying object
}
});
</script>
</body>
</html>
https://codepen.io/anon/pen/KxVQEw?editors=1111
How to determine the type of the observed proprety in data lets say .list inside 'created' life cycle hook?