One Line Solution

```javascript []
const waysToSplitArray = ([a, ...nums], s = nums.reduce((x, y) => y + x)) => 
    nums.reduce((w, v) => ([w, a, s] = [w + (a >= s), a + v, s - v])[0], 0);

```
['JavaScript']