export const unique = (current: S) => (state: S): boolean => { if (current !== state) { current = state; return true; } else { return false; } };