* Turn the # into 1s and . into 0s. for whole string * @param string * @returns {Array}
(string)
| 104 | * @returns {Array} |
| 105 | */ |
| 106 | function character(string) { |
| 107 | return string |
| 108 | .trim() |
| 109 | .split('') |
| 110 | .map(integer); |
| 111 | } |
| 112 | |
| 113 | /** |
| 114 | * Return 0 or 1 for '#' |