Explorar el Código

fixed README typo

sanex3339 hace 8 años
padre
commit
4951e8e11b
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 1
      README.md
  2. 1 0
      src/storages/ArrayStorage.ts

+ 1 - 1
README.md

@@ -124,7 +124,7 @@ For available options see [options](#options).
 Usage:
 ```sh
 javascript-obfuscator in.js [options]
-javascript-obfuscator in.js -output out.js [options]
+javascript-obfuscator in.js --output out.js [options]
 ```
 
 If the destination path is not specified through `--output` option, obfuscated code will saved into input file directory with name like `INPUT_FILE_NAME-obfuscated.js`

+ 1 - 0
src/storages/ArrayStorage.ts

@@ -45,6 +45,7 @@ export abstract class ArrayStorage <T> implements IStorage <T> {
      */
     public getKeyOf (value: T): number | null {
         const key: number = this.storage.indexOf(value);
+
         return key >= 0 ? key : null;
     }