Skip to content

Instantly share code, notes, and snippets.

export default function NgReduxStub() {
const ctrl = this
ctrl.selectedState = ""
ctrl.target = ""
ctrl.mapState = (state) => ({})
ctrl.push = (selectedState) => {
if (!isPlainObject(selectedState)) {
throw 'selectedState must be a plain object'
}