kamranahmedse / driver.js

A light-weight, no-dependency, vanilla JavaScript engine to drive the user's focus across the page

Home Page:https://driverjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Methods hasNextStep and hasPreviousStep do not return boolean

lonix1 opened this issue · comments

They (maybe) return the steps rather than booleans.

commented

@lonix1 👍

driver.js/src/driver.ts

Lines 156 to 157 in 9e6f1a4

const hasNextStep = steps[stepIndex + 1];
const hasPreviousStep = steps[stepIndex - 1];

hasNextStep => nextStep?