saurabhpedia


Saurabh Raman
  • This function first gets the current timestamp as a string using the Date.now() method. It then generates a random number between 0 and 1 using the Math.random() method, converts it to a string using the toString() method, and then takes the 2nd to 8th ch

    published version 1.0.6, 2 years ago
  • this function assumes that the input string consists of words separated by spaces. If your input string has a different format, you may need to modify the function accordingly.

    published version 1.0.0, 2 years ago
  • The find method is used to search the array for an object where the value of the key property matches the specified value. If a matching object is found, it is returned. If no matching object is found, undefined is returned.

    published version 1.0.0, 2 years ago
  • You can call this function with a number as an argument and it will return the number with a leading zero if it's less than 9, or the original number if it's 9 or greater:

    published version 1.0.1, 2 years ago
  • JavaScript function that can convert a number to its equivalent value in thousands (K), millions (M), or trillions (T)

    published version 1.0.0, 2 years ago
  • Add object containing key-value pairs that you want to search for.

    published version 1.0.1, 2 years ago
  • JavaScript function that capitalizes the first letter of each sentence in a given string.

    published version 1.0.1, 2 years ago
  • Creates an array of elements split into groups the length of size. If array can't be split evenly, the final chunk will be the remaining elements

    published version 2.0.0, 2 years ago