function isHardline(docToCheck) {
    return docToCheck === prettier.doc.builders.hardline || deepEqual(docToCheck, prettier.doc.builders.hardline);
}
Check if doc is a hardline.
We can't just rely on a simple equality check because the doc could be created with another
runtime version of prettier than what we import, making a reference check fail.