Access properties from object

So I have this little small snippet inside my code as shown below:

const menus = wp.api.models.Post.extend({
    url: wpApiSettings.root + 'fh/v1/menus/' + path,

const Menus = new menus();

enter image description here

How could I access the properties inside the object? I tried doing Menus.attributes.success or but I keep getting a undefined answer – All help is appreciated!

9 thoughts on “Access properties from object”

Leave a Comment