(base, toPush)
| 92 | |
| 93 | // Helper to push or concat based on if the 2nd parameter is an array or not |
| 94 | function pushOrConcat(base, toPush) { |
| 95 | if (toPush) { |
| 96 | if (isArray(toPush)) { |
| 97 | // base = base.concat(toPush); |
| 98 | Array.prototype.push.apply(base, toPush); |
| 99 | } else { |
| 100 | base.push(toPush); |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | return base; |
| 105 | } |
| 106 | |
| 107 | /** |
| 108 | * Returns array of strings split by newline |