/**
 * Whether the current platform has the `FormData` interface
 */
export const hasFormData: boolean = typeof FormData === 'function'
/**
 * Whether the current platform has Blob interface
 */
export const hasBlob: boolean = typeof Blob === 'function'

/**
 * Whether the current platform has File interface
 */
export const hasFile: boolean = typeof File === 'function'
/**
 * Whether the current platform has the `Buffer` interface.
 */
export const hasBuffer: boolean = typeof Buffer === 'function'

/**
 * Whether the environment is a NodeJS environment.
 */
export const isNode =
  typeof process !== 'undefined' && typeof process.release !== 'undefined' && process.release.name === 'node'
