how to allow only alphanumeric and space in javascript using regex?

Hi Friends 馃憢, Welcome To Infinitbility! 鉂わ笍 To allow only alphanumeric and space, use this regex /^[a-z\d\s]+$/i it will return true if value contain only alphanumeric and spaces. Let鈥檚 see short example to use regex in javascript const regex = /^[a-z\d\s]+$/i; console.log(regex.test("hello 8943")) Today, I鈥檓 going to show you How do I check value contain only alphanumeric and space in javascript, as above mentioned, I鈥檓 going to use the above-mentioned regex with test() method....

September 15, 2022聽路聽2 min聽路聽Infinitbility

how to allow only numbers and dot in javascript using regex?

Hi Friends 馃憢, Welcome To Infinitbility! 鉂わ笍 To allow only numbers and dot, use this regex /^[0-9]*\.?[0-9]*$/ it will return true if value contain only numbers and dots. Let鈥檚 see short example of javascript regex allow numbers and decimals only. const regex = /^[0-9]*\.?[0-9]*$/; console.log(regex.test(90.03)) Today, I鈥檓 going to show you How do I check value contain only numbers and dot in javascript, as above mentioned, I鈥檓 going to use the above-mentioned regex with test() method....

September 14, 2022聽路聽2 min聽路聽Infinitbility

how to check current typescript version?

Hi Friends 馃憢, Welcome To Infinitbility! 鉂わ笍 Check the global level of the typeScript version To check the current typescript version, open your terminal and run the tsc -v command it will show the current global version of TypeScript. Check TypeScript Version Getting error tsc not found You run the above command tsc -v but it shows the error 'tsc' not recognized as an internal or external command, it means typeScript does not install global level on your PC....

September 13, 2022聽路聽1 min聽路聽Infinitbility

how to check data type in react native?

Hi Friends 馃憢, Welcome To Infinitbility! 鉂わ笍 To check data type in react native, use typeof keyword it will return type of data just we have to use this keyword before variable or data. Let鈥檚 see short example to use typeof to get data type of value. typeof "Hello"; Today, I鈥檓 going to show you How do I check data type in react native, as above mentioned, I鈥檓 going to use the above-mentioned typeof method....

September 8, 2022聽路聽1 min聽路聽Infinitbility

how to check null value in react native?

Hi Friends 馃憢, Welcome To Infinitbility! 鉂わ笍 To check null value in react native, use if statement it will handle all falsy value or you can compare with null it self. Let鈥檚 see short example to use if statement to handle null value. let value = null; if(value){ console.log("value have data") } else { console.log("value is null or falsy value") } Today, I鈥檓 going to show you How do I check null value in react native, as above mentioned, I鈥檓 going to use the above-mentioned use if statement....

September 8, 2022聽路聽2 min聽路聽Infinitbility

how to check blank space in typescript?

Hi Friends 馃憢, Welcome To Infinitbility! 鉂わ笍 To check blank space in typeScript, use if...else statement with trim() method it will handle all falsy value like undefined, null, empty, blank and etc. Let鈥檚 see short example to use if...else with trim() method to check blank space in in typeScript. if(value.trim()){ } Today, I鈥檓 going to show you How do I check blank space in typeScript, as above mentioned, I鈥檓 going to use the above-mentioned if....

September 7, 2022聽路聽1 min聽路聽Infinitbility

how to check blank value in typescript?

Hi Friends 馃憢, Welcome To Infinitbility! 鉂わ笍 To check blank value in typeScript, use if...else statement it will handle all falsy value like undefined, null, empty, blank and etc. Let鈥檚 see short example to use if...else with value to check blank value in in typeScript. if(value){ } Today, I鈥檓 going to show you How do I check blank value in typeScript, as above mentioned, I鈥檓 going to use the above-mentioned if....

September 7, 2022聽路聽1 min聽路聽Infinitbility

how to check array is undefined in typescript?

Hi Friends 馃憢, Welcome To Infinitbility! 鉂わ笍 To check array is undefined in typeScript, use if...else statement it will handle all falsy value like undefined, null, empty and etc. Let鈥檚 see short example to use if...else with array to check array is undefined in typeScript. if(array){ } Today, I鈥檓 going to show you How do I check array is undefined in typeScript, as above mentioned, I鈥檓 going to use the above-mentioned if....

September 6, 2022聽路聽1 min聽路聽Infinitbility

how to check a variable is undefined in typescript?

Hi Friends 馃憢, Welcome To Infinitbility! 鉂わ笍 To check a variable is undefined in typeScript, use if...else statement it will handle all falsy value like undefined, null, empty and etc. Let鈥檚 see short example to use if...else with variableName to check a variable is undefined in typeScript. if(variableName){ } Today, I鈥檓 going to show you How do I check a variable is undefined in typeScript, as above mentioned, I鈥檓 going to use the above-mentioned if....

September 5, 2022聽路聽1 min聽路聽Infinitbility

how to check array is null or not in typescript?

Hi Friends 馃憢, Welcome To Infinitbility! 鉂わ笍 To check array is null or not in typeScript, use if...else statement it will handle all falsy value like undefined, null, empty and etc. Let鈥檚 see short example to use if...else with array to check a array is null in typeScript. if(array && array.length){ } Today, I鈥檓 going to show you How do I check array is null or not in typeScript, as above mentioned, I鈥檓 going to use the above-mentioned if....

September 4, 2022聽路聽1 min聽路聽Infinitbility

how to check array or not in typescript?

Hi Friends 馃憢, Welcome To Infinitbility! 鉂わ笍 To check array or not in typeScript, use Array.isArray() method it will true or false based on value we have provided, even it鈥檚 detect between object or instance of array. Let鈥檚 see short example to use if...else with Array.isArray() to check array or not in typeScript. if(Array.isArray(array)){ } Today, I鈥檓 going to show you How do I check array or not in typeScript, as above mentioned, I鈥檓 going to use the above-mentioned if....

September 3, 2022聽路聽1 min聽路聽Infinitbility

how to get string after last slash in javascript?

Hi Friends 馃憢, Welcome To Infinitbility! 鉂わ笍 To get string after last slash in javascript, use split() method with pop() method it will return those string which after then your last slash or which you used to split the string. Let鈥檚 see short example to use split() method with pop() method to get string after last slash. string.split("/").pop(); Today, I鈥檓 going to show you How do I get string after last slash in javascript, as above mentioned, I鈥檓 going to use the above-mentioned split() method with pop() method....

August 29, 2022聽路聽2 min聽路聽Infinitbility

how to get string after dot in javascript?

Hi Friends 馃憢, Welcome To Infinitbility! 鉂わ笍 To get string after dot in javascript, use split() method with pop() method it will return those string which after then your dot or which you used to split the string. Let鈥檚 see short example to use split() method with pop() method to get string after dot. string.split(".").pop(); Today, I鈥檓 going to show you How do I get string after dot in javascript, as above mentioned, I鈥檓 going to use the above-mentioned split() method with pop() method....

August 28, 2022聽路聽2 min聽路聽Infinitbility

how to get string after space in javascript?

Hi Friends 馃憢, Welcome To Infinitbility! 鉂わ笍 To get string after space in javascript, use split() method with pop() method it will return those string which after then your space or which you used to split the string. Let鈥檚 see short example to use split() method with pop() method to get string after space. string.split(" ").pop(); Today, I鈥檓 going to show you How do I get string after space in javascript, as above mentioned, I鈥檓 going to use the above-mentioned split() method with pop() method....

August 26, 2022聽路聽2 min聽路聽Infinitbility

how to get string after colon in javascript?

Hi Friends 馃憢, Welcome To Infinitbility! 鉂わ笍 To get string after colon in javascript, use split() method with pop() method it will return those string which after then your colon or which you used to split the string. Let鈥檚 see short example to use split() method with pop() method to get string after colon. string.split(":").pop(); Today, I鈥檓 going to show you How do I get string after colon in javascript, as above mentioned, I鈥檓 going to use the above-mentioned split() method with pop() method....

August 25, 2022聽路聽2 min聽路聽Infinitbility

how to get string after specific word in javascript?

Hi Friends 馃憢, Welcome To Infinitbility! 鉂わ笍 To get string after specific word in javascript, use split() method with pop() method it will return those string which after then your specific word or which you used to split the string. Let鈥檚 see short example to use split() method with pop() method to get string after specific word. string.split("WORD").pop(); Today, I鈥檓 going to show you How do I get string after specific word in javascript, as above mentioned, I鈥檓 going to use the above-mentioned split() method with pop() method....

August 24, 2022聽路聽2 min聽路聽Infinitbility

how to get string after specific character in javascript?

Hi Friends 馃憢, Welcome To Infinitbility! 鉂わ笍 To get string after specific character in javascript, use split() method with pop() method it will return those string which after then your specific character or which you used to split the string. Let鈥檚 see short example to use split() method with pop() method to get string after specific character. string.split("-").pop(); Today, I鈥檓 going to show you How do I get string after specific character in javascript, as above mentioned, I鈥檓 going to use the above-mentioned split() method with pop() method....

August 23, 2022聽路聽2 min聽路聽Infinitbility

how to get last word of string in react js?

Hi Friends 馃憢, Welcome To Infinitbility! 鉂わ笍 To get last word of string in react js, use split(" ") method with strArr.length - 1 index value it will return last word from string. You have to only pass " " in split() method. Let鈥檚 see short example to use split(" ") with with strArr.length - 1 index to get last word from string. let strArr = string.split(" "); strArr[strArr.length - 1]; Today, I鈥檓 going to show you How do I get last word of string in react js, as above mentioned, I鈥檓 going to use the above-mentioned split() method....

August 22, 2022聽路聽2 min聽路聽Infinitbility

how to get last word of string in react native?

Hi Friends 馃憢, Welcome To Infinitbility! 鉂わ笍 To get last word of string in react native, use split(" ") method with strArr.length - 1 index value it will return last word from string. You have to only pass " " in split() method. Let鈥檚 see short example to use split(" ") with with strArr.length - 1 index to get last word from string. let strArr = string.split(" "); strArr[strArr.length - 1]; Today, I鈥檓 going to show you How do I get last word of string in react native, as above mentioned, I鈥檓 going to use the above-mentioned split() method....

August 22, 2022聽路聽2 min聽路聽Infinitbility

how to get last word of string in typeScript?

Hi Friends 馃憢, Welcome To Infinitbility! 鉂わ笍 To get last word of string in typeScript, use split(" ") method with strArr.length - 1 index value it will return last word from string. You have to only pass " " in split() method. Let鈥檚 see short example to use split(" ") with with strArr.length - 1 index to get last word from string. let strArr: Array<string> = string.split(" "); strArr[strArr.length - 1]; Today, I鈥檓 going to show you How do I get last word of string in typeScript, as above mentioned, I鈥檓 going to use the above-mentioned split() method....

August 21, 2022聽路聽1 min聽路聽Infinitbility