Package Exports
- function.name-polyfill
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (function.name-polyfill) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Function.name
A polyfill for ECMAScript 6's Function.name for IE9+. All of the other modern browsers already support this functionality.
For IE < 9, you can use fn._name() instead.
Usage
function hello() {
/* ... */
}
console.log(hello.name); // "hello"Other Documentation
MDN docs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name