We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
When called on an object, this method will create a keys property and keep it populated with the object's keys.
function MyModel() { this.users = require("push-model").trackKeys({}); this.signIn = function() { this.users[7] = {name: "Ronaldo"}; this.users[10] = {name: "Messi"}; console.log(this.users.keys); //[7,10] } }