← Back to release summary
Function "name" property (ES6)
- Category
- JavaScript
- Type
- New or changed feature
- Status
- Enabled by default (Chrome 51)
- Intent stage
- None
Summary
In ECMAScript 2015, the "name" property on anonymous Function objects is sometimes set based on the syntactic position of the function (or class) expression. For example:
var x = function() { };
x.name === 'x'
Standards & signals
View on chromestatus.com