Returns an array of [_.takeWhile(arr, pred), _.dropWhile(arr, pred)](use lodash)
npm install splitwith> Returns an array of takeWhile(arr, pred), dropWhile(arr, pred)
```
$ npm install --save splitwith
`js
const splitWith = require('splitwith')
splitWith([1, 2, 3, 4, 5, 6], (x) => (x < 3)) // [[1, 2], [3, 4, 5, 6]]
// array-like objects
splitWith('abcdef', (x) => (x < 'c')) // [['a', 'b'], ['c', 'd', 'e', 'f']]
`
#### arr
Type: array or array-like objects
#### pred
Type: function`
Usage is same as https://lodash.com/docs#takeWhile
MIT © JIANG Di