isDraftable()
Check if a value is draftable
Usageβ
const baseState ={
date:newDate(),
list:[{ text:'todo'}],
};
expect(isDraftable(baseState.date)).toBeFalsy();
expect(isDraftable(baseState.list)).toBeTruthy();
tip
You can set a mark to determine if the value is draftable, and the mark function should be the same as passing in create() mark option.