1
0
Fork 0

JavaScript code cleanup and optimizations

* removed all console statements

  * sorting script: no longer creating functions within the loop

  * aosp2tt9: fixed incorrect usage of a global variable

  * injest-words: fixed a non-strict comparison

  * remove-repeating-words: commented out the case-sensitive search function, as it may be going out of use
This commit is contained in:
sspanak 2024-03-27 17:04:09 +02:00 committed by Dimo Karaivanov
parent 1c900139a2
commit 8a971ea15e
9 changed files with 70 additions and 65 deletions

7
scripts/_printers.js Normal file
View file

@ -0,0 +1,7 @@
exports.print = function(str) {
process.stdout.write(`${str}\n`);
};
exports.printError = function(str) {
process.stderr.write(`${str}\n`);
};