Optionalvalue: anyAn optionally passed value of any type.
if available, the passed value's constructor-function name - retrieved
exclusively from linked property-descriptors - otherwise undefined.
Any unnamed function refers to the empty string value/'' as its name.
Implements a getter for the passed value's constructor-function name. In case of being able to retrieve a constructor, the remaining constraint is due to any function's
namerelated property descriptor, which by default, hence without any intentional further change, is ......
Thus, something like ...
... will change any passed function's
namevalue to "FOO". As long as the latter can be safely excluded, the detection approach is safe. One even can or better yet should take advantage of it, branding a function permanently, in order to e.g. let constructor functions harden each their name as a countermeasure to code-minification tasks.