import { isObject } from "lodash";
const key = Symbol('isNewRecord');
const isNewRecord = (record)=>!!(null == record ? void 0 : record[key]);
const markRecordAsNew = (record)=>{
    if (!isObject(record)) throw new Error('markRecordAsNew: record must be an object');
    record[key] = true;
    return record;
};
export { isNewRecord, markRecordAsNew };
