Skip to content

Function: isSubjectLike()

isSubjectLike(x, withValue): boolean

Defined in: packages/core/src/is/index.ts:67

Check if value is similar to a RxJS subject with .subscribe & .next functions

Parameters

x

unknown

The value to check

withValue

boolean = false

When true, also checks if value property exists in x

Returns

boolean

true if the value is subject-like, false otherwise.