Skip to content

inspect-js/functions-have-names

Folders and files

NameName
Last commit message
Last commit date
Oct 30, 2022
Jan 20, 2020
Oct 21, 2019
Oct 30, 2022
Jul 23, 2019
Apr 20, 2021
Apr 19, 2022
Jul 23, 2019
Oct 14, 2021
Apr 19, 2022
Oct 30, 2022

Repository files navigation

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