Skip to main content
πŸŽ‰οΈ Mutative v1.0 is now out! πŸ₯³οΈ

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.

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /