src/parse-mockdb.js
function extractOps(data) {
  const ops = {};

  _.forIn(data, (attribute, key) => {
    if (isOp(attribute)) {
      ops[key] = attribute;
      delete data[key];
    }
  });

  return ops;
}
function extractOps(data) {
  const ops = {};

  _.forIn(data, (attribute, key) => {
    if (isOp(attribute)) {
      ops[key] = attribute;
      delete data[key];
    }
  });

  return ops;
}
function extractOps ( data ) { const ops = { } ; _ . forIn ( data , ( attribute , key ) => { if ( isOp ( attribute ) ) { ops [ key ] = attribute ; delete data [ key ] ; } } ) ; return ops ; }
Destructive. Takes data for update operation and removes all atomic operations. Returns the extracted ops.
Destructive . Takes data for update operation and removes all atomic operations . Returns the extracted ops .