dist/index.cjs.js
function getId(payloadPiece, conf, path, fullPayload) {
    if (isWhat.isString(payloadPiece))
        return payloadPiece;
    if (isWhat.isPlainObject(payloadPiece)) {
        if ('id' in payloadPiece)
            return payloadPiece.id;
        var keys = Object.keys(payloadPiece);
        if (keys.length === 1)
            return keys[0];
    }
    return '';
}
function getId(payloadPiece, conf, path, fullPayload) {
    if (isWhat.isString(payloadPiece))
        return payloadPiece;
    if (isWhat.isPlainObject(payloadPiece)) {
        if ('id' in payloadPiece)
            return payloadPiece.id;
        var keys = Object.keys(payloadPiece);
        if (keys.length === 1)
            return keys[0];
    }
    return '';
}
gets an ID from a single piece of payload.

@export
@param {(object | string)} payloadPiece
@param {object} [conf] (optional - for error handling) the vuex-easy-access config
@param {string} [path] (optional - for error handling) the path called
@param {(object | any[] | string)} [fullPayload] (optional - for error handling) the full payload on which each was `getId()` called
@returns {string} the id