function getAny(search) {
    if (search) {
        switch (typeof search) {
            case 'string':
                return findOneByShorthand(search);

            case 'object':
                return findOneByReference(search);
        }
    }

    throw new TypeError(
        'Expected font query to be font shorthand or font reference'
    );
}
Returns a `FontFace` from `document.fonts` that satisfies
the provided query.

@param {FontFaceReference|string} font - Either:
    - a `FontFaceReference` object
    - a font family name
    - a font specification, for example "italic bold 16px Roboto"

@returns {?FontFace}

@throws {TypeError}