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

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.