states(names, newVal) {
        const results = [];

        this.context().batch();

        each(names, name => {
            results.push(this.state(name, newVal));
        });

        this.context().end();

        return results;
    }
Get or set multiple state values to a single value.

@param {Array} names Property names.
@param {boolean} newVal New value, if setting.
@return {Array} Array of state booleans