This is useful if you're having a situation like this: formatFn("string") + formatFN ("string") Instead of doing that, you can use the power of ES6's raw string syntax. You can use this snippet to generate a tree of depth from depth. Find me on GitHub and Twitter and find me on Facebook and Twitter to find out what you want to do.
•4m read time• From devdojo.com
Table of contents
Detect if dark modeCopy to clipboardMake items in an array uniqueGet random numberGet random hex colorShuffle arrayLoop a function x timesGet random element from arrayGet random stringGet random booleanGet random number between two numbersGet cookieClear all cookiesScroll to top of elementGet average of numbersValidate emailValidate objectChunk arrayRGB to HEXRaw String to normal stringCompare two objectsGet selected textGet object of query params in the urlConvert number to wordCount number of duplicates in arrayGenerate tree from depthConclusion4 Comments
Sort: