array(arr, options) {
        options = assert(options, ['capSQL']);
        arr = resolveFunc(arr);
        if (isNull(arr)) {
            return 'null';
        }
        if (Array.isArray(arr)) {
            return $to.array(arr, options);
        }
        throw new TypeError(`${wrapText(arr)} is not an Array object.`);
    }
@method formatting.array
@description
Converts an array of values into its PostgreSQL presentation as an Array-Type constructor string: `array[]`.

Top-level empty arrays are formatted as literal `{}`, to avoid the necessity of explicit type casting,
as the server cannot automatically infer type of empty non-literal array.

@param {Array|function} arr
Array to be converted, or a function that returns one.

@param {{}} [options]
Array-Formatting Options.

@param {boolean} [options.capSQL=false]
When `true`, outputs `ARRAY` instead of `array`.

@returns {string}