src/store.js
function validateStoreName(storeName) {
            if (storeName === undefined) {
                throw new TypeError('Please provide a storename');
            }

            if (typeof(storeName) !== 'string') {
                throw new TypeError('The storename has to be a string');
            }

            var chargedStoreName = storeName = ROOT + storeName + '-';
            return chargedStoreName;
        }
function validateStoreName(storeName) {
            if (storeName === undefined) {
                throw new TypeError('Please provide a storename');
            }

            if (typeof(storeName) !== 'string') {
                throw new TypeError('The storename has to be a string');
            }

            var chargedStoreName = storeName = ROOT + storeName + '-';
            return chargedStoreName;
        }
function validateStoreName ( storeName ) { if ( storeName === undefined ) { throw new TypeError ( 'Please provide a storename' ) ; } if ( typeof ( storeName ) !== 'string' ) { throw new TypeError ( 'The storename has to be a string' ) ; } var chargedStoreName = storeName = ROOT + storeName + '-' ; return chargedStoreName ; }
generate a store name
@param  {string} storeName  The name of the store instance
@return {string}            The generated name
@throws {TypeError}
generate a store name