Last active
August 28, 2019 08:34
-
-
Save sinsunsan/a87fc6fc9d9dbd3534981247b5eaf2df to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tdLines.forEach((line, index) => { | |
switch (true) { | |
// you can use any condition here | |
case this.isLineNotReadyToUse(line): | |
linesNotReadyToUseCount++; | |
break; | |
case this.isPartNumberDuplicated(line, index, tdLines): | |
duplicatedPartsCount++; | |
break; | |
case partNumberAssociatedData && | |
this.isPartInValidationProcess( | |
line, | |
partNumberAssociatedData.partNumbers, | |
): | |
partNumberAssociatedDesignNoteCount++; | |
break; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment