How to retrieve all partial keys of a complex keyPath of an objectStore?

For a complex keyPath like [domain, field], how to reliably get [domain, *]?

The current solution I come up is objectStore.getAllKeys(IDBKeyRange.bound([domain], [domain + ''], true, true)), but it seems not quiet elegant.

Is there a more canonical way to do this?