You ask if a function called the part of the property initializer in the object initializer can access the property name, and the return value will be used to initialize it.
No, he can not. Functions do not know how their return value will be used.
source
share