const canInjectKey=(keyPath,value)=>{if(Array.isArray(keyPath))throw new Error("The key paths used in this section are always strings and never sequences, since it is not possible to create a object store which has a key generator and also has a key path that is a sequence.");const identifiers=keyPath.split(".");if(0===identifiers.length)throw new Error("Assert: identifiers is not empty");identifiers.pop();for(const identifier of identifiers){if("object"!=typeof value&&!Array.isArray(value))return!1;if(!Object.hasOwn(value,identifier))return!0;value=value[identifier]}return"object"==typeof value||Array.isArray(value)};export default canInjectKey;