lib/nice-space-before-function-paren.js
function isNamedFunction(node)
    {
        if (node.id)
            return true;
        const { parent } = node;
        const { type } = parent;
        const namedFunction =
        type === 'MethodDefinition' ||
        type === 'Property' && (parent.kind === 'get' || parent.kind === 'set' || parent.method);
        return namedFunction;
    }
function isNamedFunction(node)
    {
        if (node.id)
            return true;
        const { parent } = node;
        const { type } = parent;
        const namedFunction =
        type === 'MethodDefinition' ||
        type === 'Property' && (parent.kind === 'get' || parent.kind === 'set' || parent.method);
        return namedFunction;
    }
Determines whether a function has a name.
@param {ASTNode} node The function node.
@returns {boolean} Whether the function has a name.