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:
parent
1c900139a2
commit
8a971ea15e
9 changed files with 70 additions and 65 deletions
7
scripts/_printers.js
Normal file
7
scripts/_printers.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
exports.print = function(str) {
|
||||
process.stdout.write(`${str}\n`);
|
||||
};
|
||||
|
||||
exports.printError = function(str) {
|
||||
process.stderr.write(`${str}\n`);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue