In python, the syntax of getattr()
method is:
getattr(object, name[, default])
The above syntax is equivalent to:
object.name
What is the equivalent of getattr
in Node.js?
In python, the syntax of getattr()
method is:
getattr(object, name[, default])
The above syntax is equivalent to:
object.name
What is the equivalent of getattr
in Node.js?