![]() However, name inference only happens in limited cases such as when the function expression is assigned (with =). So even an anonymous function expression might get a name. That value is generally used by developer tools when inspecting a function value or when reporting an error stack trace. The name property of a function will reveal either its directly given name (in the case of a declaration) or its inferred name in the case of an anonymous function expression.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |