Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

functions-have-names

inspect-js137.4mMIT1.2.3

Does this JS environment support the name property on functions?

function, name, es5, names, functions, ie

readme

functions-have-names Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Does this JS environment support the name property on functions?

Example

var functionsHaveNames = require('functions-have-names');
var assert = require('assert');

assert.equal(functionsHaveNames(), true); // will be `false` in IE 6-8

Tests

Simply clone the repo, npm install, and run npm test

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

v1.2.3 - 2022-04-19

Fixed

  • [Fix] in IE 9-11, the descriptor is absent #11 #25

Commits

  • [actions] reuse common workflows 4ed274a
  • [actions] use node/install instead of node/run; use codecov action 96dfcaa
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud, auto-changelog, tape 9e674f8
  • [readme] add github actions/codecov badges; update URLs d913f5b
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud, auto-changelog, safe-publish-latest, tape f61058f
  • [actions] update codecov uploader 3348839
  • [Dev Deps] update eslint, @ljharb/eslint-config, safe-publish-latest, tape ee1a321
  • [Dev Deps] update eslint, @ljharb/eslint-config, tape b8dc1a2
  • [Dev Deps] update @ljharb/eslint-config, tape 0e825c4
  • [meta] use prepublishOnly script for npm 7+ 9489d66

v1.2.2 - 2020-12-14

Commits

  • [Tests] migrate tests to Github Actions 39bf4fe
  • [meta] do not publish github action workflow files 45ab0cb
  • [readme] add docs, fix URLs fad3af6
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud, auto-changelog, tape 82df94a
  • [Tests] run nyc on all tests; use tape runner 8038329
  • [actions] add automatic rebasing / merge commit blocking 49795eb
  • [actions] add "Allow Edits" workflow 2096fe6
  • [actions] switch Automatic Rebase workflow to pull_request_target event ec1c6fe
  • [Dev Deps] update auto-changelog; add aud 79fdb23
  • [Tests] only audit prod deps d9ca245
  • [Dev Deps] update auto-changelog, tape ac026d4
  • [Dev Deps] update tape a8c5ee3
  • [Dev Deps] update @ljharb/eslint-config b25fafd

v1.2.1 - 2020-01-19

Commits

  • [Tests] use shared travis-ci configs 612823a
  • [Fix] IE 8 has a broken Object.getOwnPropertyDescriptor ba01c22
  • [Dev Deps] update eslint, @ljharb/eslint-config, auto-changelog; add safe-publish-latest b28d9d2
  • [Dev Deps] update eslint, @ljharb/eslint-config, tape a62fbd6
  • [meta] add funding field 8734a94

v1.2.0 - 2019-10-20

Commits

  • [Dev Deps] update eslint, @ljharb/eslint-config, auto-changelog 7e07444
  • [New] add boundFunctionsHaveNames() 05661be

v1.1.1 - 2019-07-24

Commits

  • [Tests] fix linting errors 0cb8017
  • [Tests] fix tests when name is not configurable 38a8aee
  • [Fix] ensure function name mangling does not break detection f6926ab

v1.1.0 - 2019-07-23

Commits

  • [New] add functionsHaveConfigurableNames function on main export ce73f75

v1.0.0 - 2019-07-22

Commits