lib/mlMutators.js
function parseML(memberLog, required) {

  return memberLog.map(member => {

    const cloned = clone(member);
    const key = Reflect.ownKeys(cloned)[0];
    const value = cloned[key];

    cloned[key] = value.filter(elem => (elem !== required));

    return cloned;
  });
}
function parseML(memberLog, required) {

  return memberLog.map(member => {

    const cloned = clone(member);
    const key = Reflect.ownKeys(cloned)[0];
    const value = cloned[key];

    cloned[key] = value.filter(elem => (elem !== required));

    return cloned;
  });
}
function parseML ( memberLog , required ) { return memberLog . map ( member => { const cloned = clone ( member ) ; const key = Reflect . ownKeys ( cloned ) [ 0 ] ; const value = cloned [ key ] ; cloned [ key ] = value . filter ( elem => ( elem !== required ) ) ; return cloned ; } ) ; }
Removes the required members of the member log
@param {Array.<Object>} memberLog The array of the members. The entries are objects with one own key
@param {Symbol} required The required marker
@returns {Array.<Object>} The parsed member log
Removes the required members of the member log