File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- // CheckKebabCase method checks the given string is in kebab_case or not.
1+ // CheckKebabCase method checks the given string is in kebab-case or not.
22
33// Problem Source & Explanation: https://en.wikipedia.org/wiki/Naming_convention_(programming)
44
55/**
6- * CheckKebabCase method returns true if the string in kebab_case , else return the false.
6+ * CheckKebabCase method returns true if the string in kebab-case , else return the false.
77 * @param {String } varName the name of the variable to check.
8- * @returns `Boolean` return true if the string is in kebab_case , else return false.
8+ * @returns `Boolean` return true if the string is in kebab-case , else return false.
99 */
1010const CheckKebabCase = ( varName ) => {
1111 // firstly, check that input is a string or not.
You can’t perform that action at this time.
0 commit comments