Reserve notes for redeem
This commit is contained in:
parent
1488a60a60
commit
67e12b19cb
6 changed files with 235 additions and 93 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue