mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 08:16:50 +08:00
re-formatted CheckPascalCase by standard.js after updating error.
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
const CheckPascalCase = (VarName) => {
|
||||
// firstly, check that input is a string or not.
|
||||
if (typeof VarName !== 'string') {
|
||||
return new TypeError("Argument is not a string.")
|
||||
return new TypeError('Argument is not a string.')
|
||||
}
|
||||
|
||||
const pat = /^[A-Z][A-Za-z]*$/
|
||||
|
Reference in New Issue
Block a user