_getCheckAttributeNameHelper(functionName, supportedAttributeNames) {
        return attributeName => {
            if (!_.includes(supportedAttributeNames, attributeName)) {
                throw new Error(`Sheet.${functionName}: "${attributeName}" is not supported.`);
            }
        };
    }
Get a helper function to check that the attribute name provided is supported.
@param {string} functionName - Name of the parent function.
@param {array} supportedAttributeNames - Array of supported attribute name strings.
@returns {function} The helper function, which takes an attribute name. If the array of supported attribute names does not contain the given attribute name, then an Error is thrown.
@ignore