All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.core-js.modules.es6.function.name.js Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
var dP = require('./_object-dp').f;
var FProto = Function.prototype;
var nameRE = /^\s*function ([^ (]*)/;
var NAME = 'name';

// 19.2.4.2 name
NAME in FProto || require('./_descriptors') && dP(FProto, NAME, {
  configurable: true,
  get: function () {
    try {
      return ('' + this).match(nameRE)[1];
    } catch (e) {
      return '';
    }
  }
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy