sprintf.js
sprintf.js copied to clipboard
Tests code improvements
-
varreplaced withconst -
anonymous functions replaced with arrow functions
-
PI value replaced with
Math.PIconstant -
equalreplaced withstrictEqualsince the first one was deprecated -
[x] tests
-
[x] linter
equal replaced with strictEqual since the first one was deprecated
The better way to do this is by loading assert like this: const assert = require('assert/strict'), or if we're willing to drop support for older versions of node: const assert = require('node:assert/strict').