Son CV dans un terminal web en Javascript!
https://terminal-cv.gregandev.fr
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
greg
4d1d2f8c52
|
1 year ago | |
---|---|---|
.. | ||
.github | 1 year ago | |
test | 1 year ago | |
.eslintignore | 1 year ago | |
.eslintrc | 1 year ago | |
.nycrc | 1 year ago | |
CHANGELOG.md | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
auto.js | 1 year ago | |
implementation.js | 1 year ago | |
index.js | 1 year ago | |
package.json | 1 year ago | |
polyfill.js | 1 year ago | |
shim.js | 1 year ago |
README.md
is-nan
ES2015-compliant shim for Number.isNaN - the global isNaN returns false positives.
This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec.
Example
Number.isNaN = require('is-nan');
var assert = require('assert');
assert.notOk(Number.isNaN(undefined));
assert.notOk(Number.isNaN(null));
assert.notOk(Number.isNaN(false));
assert.notOk(Number.isNaN(true));
assert.notOk(Number.isNaN(0));
assert.notOk(Number.isNaN(42));
assert.notOk(Number.isNaN(Infinity));
assert.notOk(Number.isNaN(-Infinity));
assert.notOk(Number.isNaN('foo'));
assert.notOk(Number.isNaN(function () {}));
assert.notOk(Number.isNaN([]));
assert.notOk(Number.isNaN({}));
assert.ok(Number.isNaN(NaN));
Tests
Simply clone the repo, npm install
, and run npm test