(str)
| 37 | * @api public |
| 38 | */ |
| 39 | export function decode(str) { |
| 40 | let decoded = 0; |
| 41 | |
| 42 | for (i = 0; i < str.length; i++) { |
| 43 | decoded = decoded * length + map[str.charAt(i)]; |
| 44 | } |
| 45 | |
| 46 | return decoded; |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Yeast: A tiny growing id generator. |
no outgoing calls
no test coverage detected