const isType = <T>(type: string) => (obj: unknown): obj is T => toString.call(obj) === `[object ${type}]`
This function is all about determining types, but the arrows used in the syntax are confusing to me. I'm not sure what each arrow signifies.
const isType = <T>(type: string) => (obj: unknown): obj is T
The first part of the code shows that the function takes a type parameter and returns a boolean value based on type judgment.
=> toString.call(obj) === `[object ${type}]`
I'm unsure about the meaning of the latter part.