function isBuffer(val) {
  return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
    && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
}
Determine if a value is a Buffer

@param {*} val The value to test

@returns {boolean} True if value is a Buffer, otherwise false