state-scheme
v0.1.1
Published
Create composable State - Reducer by define them as schemes
Downloads
2
Readme
state-scheme
Create composable State - Reducer by define them as schemes
Usage
please check /example/test.js
Contents
export {
Scheme,
ObjectScheme,
ArrayScheme,
ObjectAs,
ArrayOf,
objectActMap,
arrayActMap,
Operation
}
Operation
const Operation = {
objectSet,
objectDelete,
objectMerge,
arraySet,
arrayDelete,
arrayInsert,
arrayPush,
arrayUnshift,
arrayPop,
arrayShift,
arrayConcat,
arrayMatchPush,
arrayMatchDelete,
arrayMatchMove,
arrayFindPush,
arrayFindDelete,
arrayFindMove,
arrayFindSet
}