js-coalaip icon indicating copy to clipboard operation
js-coalaip copied to clipboard

auto enumerating the properties

Open KrishnaPG opened this issue 6 years ago • 1 comments

Is it possible to automatically (programatically) get the list of properties of any type? For example, something like

const man = new Person()

man.getListOfAllProperties(); // returns ["givenName", "familyName", ...]

KrishnaPG avatar Oct 17 '18 09:10 KrishnaPG

Hi @KrishnaPG. This is not currently possible, but is something we would be happy to consider adding. Our bandwidth is a bit limited at the moment so I'm not sure when we will get around to it. We're also happy to consider PRs.

Cheers!

alexanderattar avatar Oct 17 '18 15:10 alexanderattar