javascript vérifier si une chaine de carctère commence par une majuscule
/* Test if a character is uppercase by converting it to lowercase
* and comparing that with the original.
* If they are different, the original was uppercase.
* If they are the same, the original was either a lowercase character
* or a character that doesn't have uppercase and lowercase
* versions (e.g. a number or punctuation mark).
*/
function isUpperCase(char)
{
// 'char' is a string containing a single character
return char !== char.toLowerCase();
}
Also in JavaScript:
- render props
- algolia react hits
- how to execute something after ajax call
- printing in a single line in javascript
- node.js express
- chartjs bar chart hover color
- replace all javascript
- convert json to object jackson
- javascript not working on rails app
- react mid senior dev interview questuions
- object find javascript
- packages.json from file
- how to run a vue js hello world app in vue version 3
- javascript this = that
- remove a value to an array of javascript
- javascript document load
- appendchild element once if element present in js
- get current directory vbscript
- node js read file from s3 bucket
- ready function javascript
- Your global Angular CLI version (11.0.2) is greater than your local version
- tinymce menubar hide
- creating a 2d array in js
- Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.