Returns a boolean indicating whether a HTTP header with the specified name exists in a Headers object.
has(name)
name
The name of the HTTP header.
true if a HTTP header with the specified name exists, otherwise false.
let headers = new Headers({ "content-type": "application/json" })
headers.has('Content-Type')
true