src/createLogicMiddleware.js
function naming(logic, idx) {
  if (logic.name) { return logic; }
  return {
    ...logic,
    name: `L(${stringifyType(logic.type)})-${idx}`
  };
}
function naming(logic, idx) {
  if (logic.name) { return logic; }
  return {
    ...logic,
    name: `L(${stringifyType(logic.type)})-${idx}`
  };
}
function naming ( logic , idx ) { if ( logic . name ) { return logic ; } return { ... logic , name : ` ${ stringifyType ( logic . type ) } ${ idx } ` } ; }
Implement default names for logic using type and idx
@param {object} logic named or unnamed logic object
@param {number} idx  index in the logic array
@return {object} namedLogic named logic
Implement default names for logic using type and idx