imports/vx/both/code/util.js
/**
     * Test whether the current route path begins with the specified string or
     * any of an array of strings.
     *
     * @param {?} stringOrArray String or array of route prefixes.
     * @return {boolean} True if the current route path begins with the specified string.
     */
Test whether the current route path begins with the specified string or
any of an array of strings.

@param {?} stringOrArray String or array of route prefixes.
@return {boolean} True if the current route path begins with the specified string.
Test whether the current route path begins with the specified string or any of an array of strings . @param { ? } stringOrArray String or array of route prefixes . @return { boolean } True if the current route path begins with the specified string .
isRoutePath(stringOrArray) {
        let path = Util.routePath()
        if (!stringOrArray || !path) {
            return false
        }
        if (_.isString(stringOrArray)) {
            return path.indexOf(stringOrArray) === 0
        }
        if (_.isArray(stringOrArray)) {
            let found = false
            _.every(stringOrArray, routePrefix => {
                if (path.indexOf(routePrefix) === 0) {
                    found = true
                    return false
                }
                return true
            })
            return found
        }
        return false
    }
isRoutePath ( stringOrArray ) { let path = Util . routePath ( ) if ( ! stringOrArray || ! path ) { return false } if ( _ . isString ( stringOrArray ) ) { return path . indexOf ( stringOrArray ) === 0 } if ( _ . isArray ( stringOrArray ) ) { let found = false _ . every ( stringOrArray , routePrefix => { if ( path . indexOf ( routePrefix ) === 0 ) { found = true return false } return true } ) return found } return false }
Test whether the current route path begins with the specified string or
 any of an array of strings.
Test whether the current route path begins with the specified string or any of an array of strings .