|
@ -26,7 +26,7 @@ const startSliding = (k, predicate, host, guest, window, windowPos) => { |
|
|
|
|
|
|
|
|
const test = predicate ? predicate : isEq; |
|
|
const test = predicate ? predicate : isEq; |
|
|
|
|
|
|
|
|
const firstMatch = host.findIndex(wrap(isEq, window[0])); |
|
|
const firstMatch = host.findIndex(wrap(test, window[0])); |
|
|
|
|
|
|
|
|
// If first item returns a match, then continue to slideNext()
|
|
|
// If first item returns a match, then continue to slideNext()
|
|
|
const len = firstMatch ? slideNext(host, guest, firstMatch, windowPos) : undefined; |
|
|
const len = firstMatch ? slideNext(host, guest, firstMatch, windowPos) : undefined; |
|
|