Reserve notes for redeem

This commit is contained in:
Josh Harvey 2017-05-04 21:27:12 +03:00
parent 1488a60a60
commit 67e12b19cb
6 changed files with 235 additions and 93 deletions

View file

@ -106,12 +106,11 @@ function checkPing (deviceEvents) {
}
function dropRepeatsWith (comparator, arr) {
var fullReduce = _.reduce.convert({cap: false})
const iteratee = (acc, val) => val === acc.last
? acc
: {arr: _.concat(acc.arr, val), last: val}
return fullReduce(iteratee, {arr: []}, arr).arr
return _.reduce(iteratee, {arr: []}, arr).arr
}
function checkStuckScreen (deviceEvents) {