export default (entityData = []) => (_, entity) => {
    const newId =
        entityData.length > 0 ? entityData[entityData.length - 1].id + 1 : 1;
    const newEntity = Object.assign(entity, { id: newId });
    entityData.push(newEntity);
    return newEntity;
};

@@ -139,17 +139,17 @@
 d + 1 : 
-1
+0
 ;%0A    co

Create create.js