dist/index.esm.js
function getValueFromPayloadPiece(payloadPiece) {
    if (isPlainObject(payloadPiece) &&
        !payloadPiece.id &&
        Object.keys(payloadPiece).length === 1 &&
        isPlainObject(payloadPiece[Object.keys(payloadPiece)[0]])) {
        return Object.values(payloadPiece)[0];
    }
    return payloadPiece;
}
function getValueFromPayloadPiece(payloadPiece) {
    if (isPlainObject(payloadPiece) &&
        !payloadPiece.id &&
        Object.keys(payloadPiece).length === 1 &&
        isPlainObject(payloadPiece[Object.keys(payloadPiece)[0]])) {
        return Object.values(payloadPiece)[0];
    }
    return payloadPiece;
}
Returns a value of a payload piece. Eg. {[id]: 'val'} will return 'val'

@param {*} payloadPiece
@returns {*} the value