A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/JamesMGreene/Function.name below:

JamesMGreene/Function.name: Polyfill for ECMAScript 6's `Function.name`.

A polyfill for the basic functionality of Function.name accessor property in its pre-ES6 form.

Named function declarations
function hello() {
  /* ... */
}
console.log(hello.name);  // "hello"
Named function expressions
var fn = function foo() {
  /* ... */
};
console.log(fn.name);  // "foo"

Most modern browsers have already supported this basic functionality for quite some time but this polyfill will apply to at least the following:

For IE <9, you can still use fn._name() instead.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4