UNPKG

@aigamo/nostalgic-diva

Version:

React function components for imperatively controlling embedded players (audio, Niconico, SoundCloud and YouTube) using refs.

3 lines (2 loc) 167 B
export type Predicate<T> = (prev: T | undefined, next: T) => boolean; export default function usePreviousDistinct<T>(value: T, compare?: Predicate<T>): T | undefined;