0.1.0 #1
@@ -8,5 +8,5 @@ export const get: {
|
||||
} = Function.dual(2, <S>(self: React.SetStateAction<S>, prevState: S): S =>
|
||||
typeof self === "function"
|
||||
? (self as (prevState: S) => S)(prevState)
|
||||
: prevState
|
||||
: self
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user