import { map } from "rxjs"; import { inputPipe } from '../utils/input-pipe'; /** * An Event Source Operator emitting the checked state of the underlying checkbox element instead of a regular DOM Event object * @returns OperatorFunction */ export const checkedState = map((e: Event) => (e.target).checked) ; /** * An Event Source emitting the checked state of the underlying checkbox element instead of a regular DOM Event object * @returns EventSource */ export const CheckedState = inputPipe( checkedState );