function isCapAllowed(allowedMap,node,calleeName){if(allowedMap[calleeName]||allowedMap[context.getSource(node.callee)]){return true;}if(calleeName==="UTC"&&node.callee.type==="MemberExpression"){// allow if callee is Date.UTC
return node.callee.object.type==="Identifier"&&node.callee.object.name==="Date";}return false;}
Check if capitalization is allowed for a CallExpression
@param {Object} allowedMap Object mapping calleeName to a Boolean
@param {ASTNode} node CallExpression node
@param {string} calleeName Capitalized callee name from a CallExpression
@returns {Boolean} Returns true if the callee may be capitalized