Explorar o código

Added missing helper function documentation in Template class.

Aleksander Nowodzinski %!s(int64=9) %!d(string=hai) anos
pai
achega
2674d569e9
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      packages/ckeditor5-ui/src/template.js

+ 4 - 1
packages/ckeditor5-ui/src/template.js

@@ -966,8 +966,11 @@ function extendTemplateDefinition( def, extDef ) {
 	}
 }
 
+// Checks if value is "falsy".
+// Note: 0 (Number) is not "falsy" in this context.
+//
+// @param {*} value Value to be checked.
 function isFalsy( value ) {
-	// Note 0 is not falsy in this context.
 	return !value && value !== 0;
 }