SOURCE

 var  wornMerchant= {
          "address": "7",
          "email": "123424",
          "gmtCreate": "2019-03-27 23:10:55",
          "gmtModified": "2019-03-27 23:10:55",
          "id": "968a4762dc1048868e100028f2ccddde",
          "identity": "4",
          "identityImg1": "5",
          "identityImg2": "6",
          "name": "82企业吗122222222222222",
          "phone": "1199999999",
          "regionCode": "3",
          "regionName": "23543636",
          "status": 3,
          "type": 2
        };

var   merchant= {
          "address": "4",
          "gmtCreate": "2019-03-28 11:34:42",
          "gmtModified": "2019-03-28 11:34:42",
          "id": "968a4762dc1048868e100028f2ccddde",
          "identity": "1",
          "identityImg1": "2",
          "identityImg2": "3",
          "name": "5",
          "phone": "17521211320",
          "regionCode": "86",
          "regionName": "中国",
          "status": 5,
          "type": 2
        };
var result=_.pick(merchant,function(value,key,obj){
  for(var key1 in wornMerchant){
    if(key1==key){
      return value==wornMerchant[key1]
    }
  }
})
console.log(JSON.stringify(result))
console 命令行工具 X clear

                    
>
console