code: function checkInterface(obj, funcs) {
      for (var i = 0; i < funcs.length; ++i) {
          if (typeof obj[funcs[i]] !== 'function')
              return false;
      }
      return true;
  }
docs: Check that an object possesses the specified functions.