You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "kinow (via GitHub)" <gi...@apache.org> on 2023/02/19 09:49:48 UTC

[GitHub] [jena-site] kinow commented on a diff in pull request #147: Setup documentation for script functions

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


##########
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:
   I'm fine either way. But if that's JS, the previous way is now more common, I think (although for shorter chained calls like this one I think it's almost 50% 50%) - https://eslint.org/docs/latest/rules/newline-per-chained-call



-- 
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-unsubscribe@jena.apache.org

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