function isNullishDimension(x) {
    return x === null || x === undefined || x === -1;
}
Determine if a provided width or height is nullish.
@param {*} x The value to check.
@returns {boolean} True if the value is `null`, `undefined` or `-1`, false otherwise.