isUpdaterFunction

Function: isUpdaterFunction()

ts
function isUpdaterFunction<T>(updater): updater is (prev: T) => T
function isUpdaterFunction<T>(updater): updater is (prev: T) => T

Defined in: types.ts:27

Type guard to check if updater is a function

Type Parameters

T

Parameters

updater

Updater<T>

Returns

updater is (prev: T) => T