refactor: Renamed js to nodejs

- feat: Added util module
This commit is contained in:
Aerex
2019-12-01 12:30:20 -05:00
parent 294f16e5da
commit 5518fdbe91
4 changed files with 24 additions and 12 deletions

View File

@@ -17,12 +17,7 @@
* Assume we are dealing with an environment which could only store integers within the 32-bit signed integer range: [231, 231 1]. If the numerical value is out of the range of representable values, INT_MAX (231 1) or INT_MIN (231) is returned.
*/
const assert = function(condition, message) {
if(!condition) {
console.error(`${message}`);
}
console.log(`${message}`);
}
const { assert } = require('../../util/js');
/**
* @param {string} str