kinow commented on code in PR #147:
URL: https://github.com/apache/jena-site/pull/147#discussion_r1111203704


##########
source/documentation/query/javascript-functions.md:
##########
@@ -97,9 +106,7 @@ For example, "some words to process " becomes 
"someWordsToProcess".
     // Words to be combined are separated by a space in the string.
     
     function toCamelCase(str) {
-        return str.split(' ')
-       .map(cc)
-       .join('');
+        return str.split(' ').map(cc).join('');

Review Comment:
   (but it really doesn't matter... it's only for readability, same reason why 
it's becoming more common to drop the `;` too, and rely on ECMAScript 
implementations ability to perform the automatic semicolon insertion 
([ASI](https://tc39.es/ecma262/#sec-automatic-semicolon-insertion)) - parsing 
JS must be tough)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@jena.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to