This file contains 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
/** | |
* Simple morse code translation up to 3 levels deep with uncertainty allowance | |
* | |
* @example | |
* // returns [ 'K', 'O' ] | |
* node morsecode.js '-?-' | |
* | |
* @param {String} input Morse code string containing '-', '.' and '?' characters | |
* @returns {String[]} Array of possible value outcomes | |
* |