mirror of https://github.com/jkjoy/sunpeiwen.git
9a9cb42f53 | ||
---|---|---|
.. | ||
.github | ||
test | ||
.editorconfig | ||
.eslintrc | ||
.nycrc | ||
CHANGELOG.md | ||
LICENSE | ||
README.md | ||
index.js | ||
package.json |
README.md
functions-have-names
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