imports/vx/both/code/util.js
/**
     * Determine whether a given value (e.g. path) starts with any of a supplied
     * array of strings (e.g., list of paths).
     *
     * @param {array} stringArray Array of strings to test.
     * @param {string} value Value to be tested.
     * @return {boolean} True if any string in the array starts with the value.
     */
Determine whether a given value  starts with any of a supplied
array of strings .

@param {array} stringArray Array of strings to test.
@param {string} value Value to be tested.
@return {boolean} True if any string in the array starts with the value.
Determine whether a given value starts with any of a supplied array of strings . @param { array } stringArray Array of strings to test . @param { string } value Value to be tested . @return { boolean } True if any string in the array starts with the value .
startsWith(stringArray, value) {
        let found = false
        stringArray.every(testString => {
            if (value.startsWith(testString)) {
                found = true
                return false
            }
            return true
        })
        return found
    }
startsWith ( stringArray , value ) { let found = false stringArray . every ( testString => { if ( value . startsWith ( testString ) ) { found = true return false } return true } ) return found }
Determine whether a given value (e.g.
Determine whether a given value ( e . g .