fix linting errors
This commit is contained in:
parent
c3f5fdcd18
commit
0db5d43409
@ -3,7 +3,6 @@ import { useRef, useEffect } from 'react'
|
||||
// from: https://overreacted.io/making-setinterval-declarative-with-react-hooks/
|
||||
export function useInterval(callback, delay) {
|
||||
const savedCallback = useRef()
|
||||
const x = 'asdf'
|
||||
// Remember the latest callback.
|
||||
useEffect(() => {
|
||||
savedCallback.current = callback
|
||||
|
@ -25,6 +25,6 @@ export function getNextSmallerNumber(num, sortedArray) {
|
||||
return null
|
||||
}
|
||||
|
||||
function lastEntry(arr) {
|
||||
export function lastEntry(arr) {
|
||||
return arr[arr.length - 1]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user