Advertise here

30 Seconds of Code – Collection of Useful Javascript Snippets

December 12, 2017     787    
30 Seconds of Code – Collection of Useful Javascript Snippets

Curated collection of useful Javascript snippets that you can understand in 30 seconds or less.

Contents

  • Anagrams of string (with duplicates)
  • Average of array of numbers
  • Capitalize first letter of every word
  • Capitalize first letter
  • Check for palindrome
  • Count occurrences of a value in array
  • Current URL
  • Curry
  • Deep flatten array
  • Difference between arrays
  • Distance between two points
  • Divisible by number
  • Escape regular expression
  • Even or odd number
  • Factorial
  • Fibonacci array generator
  • Filter out non uniqe values in an array
  • Flatten array
  • Get max value from array
  • Get min value from array
  • Get scroll position
  • Greatest common divisor (GCD)
  • Head of list
  • Initial of list
  • Initialize array with range
  • Initialize array with values
  • Last of list
  • Measure time taken by function
  • Object from key value pairs
  • Pipe
  • Powerset
  • Random number in range
  • Randomize order of array
  • Redirect to url
  • Reverse a string
  • RGB to hexadecimal
  • Scroll to top
  • Shuffle array values
  • Similarity between arrays
  • Sort characters in string (alphabetical)
  • Sum of array of numbers
  • Swap values of two variables
  • Tail of list
  • Unique values of array
  • URL parameters
  • UUID generator
  • Validate number

Related Plugins

Latest Plugins


Subscribe to Newsletter

Subscribe to email newsletter for latest jQuery plugins & tutorials.



AdvertisementAdvertise with us!