dist/spyfu-vue-factory.esm.js
function findModule(store, namespace) {
    return namespace.split('/').reduce(function (obj, key) {
        // root modules will exist directly on the store
        if (obj && obj[key]) {
            return obj[key];
        }

        // child stores will exist in a modules object
        if (obj && obj.modules && obj.modules[key]) {
            return obj.modules[key];
        }

        // if we couldn't find the module, throw an error
        // istanbul ignore next
        throw new Error('Could not find module "' + namespace + '" in store.');
    }, store);
}
function findModule(store, namespace) {
    return namespace.split('/').reduce(function (obj, key) {
        // root modules will exist directly on the store
        if (obj && obj[key]) {
            return obj[key];
        }

        // child stores will exist in a modules object
        if (obj && obj.modules && obj.modules[key]) {
            return obj.modules[key];
        }

        // if we couldn't find the module, throw an error
        // istanbul ignore next
        throw new Error('Could not find module "' + namespace + '" in store.');
    }, store);
}
function findModule ( store , namespace ) { return namespace . split ( '/' ) . reduce ( function ( obj , key ) { // root modules will exist directly on the store if ( obj && obj [ key ] ) { return obj [ key ] ; } // child stores will exist in a modules object if ( obj && obj . modules && obj . modules [ key ] ) { return obj . modules [ key ] ; } // if we couldn't find the module, throw an error // istanbul ignore next throw new Error ( 'Could not find module "' + namespace + '" in store.' ) ; } , store ) ; }
helper to find vuex modules via their namespace
helper to find vuex modules via their namespace