def is_javascript_file(path):
 ext = os.path.splitext(path)[1].lower()
 return (ext in [u'.js', u'.javascript'])

def is_javascript_file ( path ) : ext = os . path . splitext ( path ) [ 1 ] . lower ( ) return ( ext in [ u'.js' , u'.javascript' ] )
return true if the given file path is a javascript file .