(array)
| 124 | // [...array] is transpiled to array.concat() while it was [].concat(array) before |
| 125 | // this change breaks immutable array(seamless-immutable), [...array] should always return mutable array |
| 126 | export function cloneArray(array) { |
| 127 | if (!Array.isArray(array)) return []; |
| 128 | return [].concat(array); |
| 129 | } |
| 130 | |
| 131 | export function noop() {} |
| 132 |
no outgoing calls
no test coverage detected