(base, toPush)
| 128 | |
| 129 | // Helper to push or concat based on if the 2nd parameter is an array or not |
| 130 | function pushOrConcat(base, toPush) { |
| 131 | if (toPush) { |
| 132 | if (isArray(toPush)) { |
| 133 | // base = base.concat(toPush); |
| 134 | Array.prototype.push.apply(base, toPush); |
| 135 | } else { |
| 136 | base.push(toPush); |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | return base; |
| 141 | } |
| 142 | |
| 143 | /** |
| 144 | * Returns array of strings split by newline |