code: function (obj, target) {
                      if (obj == null)
                          return false;
                      if (obj.length !== +obj.length)
                          obj = _.values(obj);
  
                      if (_.every(obj, function (item) {
                          return moment.isMoment(item);
                      })) {
                          return _.any(obj, function (item) {
                              return item.isSame(target);
                          });
                      } else {
                          return _.indexOf(obj, target) >= 0;
                      }
                  }
docs: returns true if source has all the properties(nested) of target.