Skip to content

Commit 6e2506b

Browse files
replace _ to -
1 parent 82e7ede commit 6e2506b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

String/CheckKebabCase.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
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
*/
1010
const CheckKebabCase = (varName) => {
1111
// firstly, check that input is a string or not.

0 commit comments

Comments
 (0)