Skip to content

Commit

Permalink
Update String/CheckPascalCase.js
Browse files Browse the repository at this point in the history
Co-authored-by: Rak Laptudirm <[email protected]>
  • Loading branch information
1 parent 8722d52 commit cddfc34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion String/CheckPascalCase.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
const CheckPascalCase = (VarName) => {
// firstly, check that input is a string or not.
if (typeof VarName !== 'string') {
return 'Not string(s)'
return new TypeError("Argument is not a string.")
}

const pat = /^[A-Z][A-Za-z]*$/
Expand Down

0 comments on commit cddfc34

Please sign in to comment.