JSFiddle - React, Tailwind, and code Playground

by David Kyle

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.5.0/knockout-min.js"></script>

JavaScript

var SubModel = function() {
	var sub = this;
  sub.Children = ko.observable(1);
}
var Model = function() {
	var self = this;
  self.Name = ko.observable("David");
  self.Age = ko.observable(12);
  self.IsLiar = ko.observable(true);
  self.Family = new SubModel();
}

var instance = new Model();

var keys = Object.keys(instance);

console.log(keys);