Introduction
- The Unique Advantage this Book will allow you to unleash
- Who is this book for ?
- What is covered in this book ?
Chapter 1: Array related snippets
- all
- allEqual
- any
- compact
- difference
- drop
- dropRight
- everyNth
- filterNonUnique
- findLast
- head
- includesAll
- includesAny
- initial
- last
- maxN
- minN
- none
- nthElement
- offset
- reject
- sample
- similarity
- tail
- take
- union
- uniqueElements
- without
- arrayToCSV
- bifurcate
- bifurcateBy
- chunk
- chunkIntoN
- countBy
- countOccurrences
- deepFlatten
- differenceBy
- differenceWith
- dropRightWhile
- dropWhile
- filterNonUniqueBy
- findLastIndex
- flatten
- forEachRight
- frequencies
- groupBy
- haveSameContents
- indexOfAll
- initialize2DArray
- initializeArrayWithRange
- initializeArrayWithRangeRight
- initializeArrayWithValues
- initializeNDArray
- intersection
- intersectionBy
- intersectionWith
- isContainedIn
- isSorted
- join
- longestItem
- mapObject
- mostFrequent
- normalizeLineEndings
- partition
- pull
- reduceSuccessive
- reduceWhich
- reducedFilter
- remove
- sampleSize
- shank
- shuffle
- sortedIndex
- sortedIndexBy
- sortedLastIndex
- sortedLastIndexBy
- stableSort
- symmetricDifference
- symmetricDifferenceBy
- symmetricDifferenceWith
- takeRight
- takeRightWhile
- takeWhile
- toHash
- unionBy
- unionWith
- uniqueElementsBy
- uniqueElementsByRight
- uniqueSymmetricDifference
- unzip
- xProd
- zip
- zipObject
- JSONtoCSV
- permutations
- pullAtIndex
- pullAtValue
- pullBy
- unzipWith
- weightedSample
- zipWith
Chapter 2: Browser related snippets
- createElement
- currentURL
- getImages
- getBaseURL
- getStyle
- hasClass
- hide
- insertAfter
- insertBefore
- isBrowserTabFocused
- nodeListToArray
- redirect
- setStyle
- show
- toggleClass
- UUIDGeneratorBrowser
- arrayToHtmlList
- bottomVisible
- detectDeviceType
- elementContains
- formToObject
- getScrollPosition
- getURLParameters
- httpDelete
- httpGet
- httpPost
- httpPut
- httpsRedirect
- isBrowser
- off
- on
- parseCookie
- prefersDarkColorScheme
- prefersLightColorScheme
- prefix
- recordAnimationFrames
- scrollToTop
- serializeCookie
- serializeForm
- smoothScroll
- supportsTouchEvents
Chapter 3: Date related snippets
- dayOfYear
- getMeridiemSuffixOfInteger
- isAfterDate
- isBeforeDate
- isLeapYear
- isSameDate
- isWeekday
- isWeekend
- maxDate
- minDate
- getColonTimeFromDate
- formatDuration
- getDaysDiffBetweenDates
- tomorrow
- yesterday
Chapter 4: Function related snippets
- checkProp
- functionName
- negate
- nthArg
- timeTaken
- unary
- ary
- attempt
- bind
- bindKey
- call
- chainAsync
- collectInto
- compose
- composeRight
- converge
- curry
- debounce
- defer
- delay
- flip
- hz
- mostPerformant
- once
- over
- overArgs
- partial
- partialRight
- pipeAsyncFunctions
- pipeFunctions
- promisify
- rearg
- runPromisesInSeries
- sleep
- spreadOver
- times
- uncurry
- unfold
- when
- throttle
Chapter 5: Math related snippets
- accumulate
- approximatelyEqual
- average
- celsiusToFahrenheit
- clampNumber
- digitize
- degreesToRads
- distance
- factorial
- fahrenheitToCelsius
- fibonacci
- gcd
- inRange
- isDivisible
- isEven
- isNegativeZero
- isOdd
- isPowerOfTwo
- isPrime
- lcm
- mapNumRange
- maxBy
- midpoint
- minBy
- powerset
- radsToDegrees
- randomHexColorCode
- randomIntegerInRange
- randomNumberInRange
- sum
- toDecimalMark
- toSafeInteger
- vectorAngle
- vectorDistance
- averageBy
- binomialCoefficient
- geometricProgression
- hammingDistance
- median
- percentile
- primes
- randomIntArrayInRange
- round
- sdbm
- standardDeviation
- sumBy
- sumPower
- toCurrency
- toOrdinalSuffix
- validateNumber
- luhnCheck
Chapter 6: Node related snippets
- atob
- btoa
- createDirIfNotExists
- untildify
- readFileLines
- JSONToFile
- colorize
- UUIDGeneratorNode
- hasFlags
- hashNode
- isDuplexStream
- isReadableStream
- isStream
- isTravisCI
- isWritableStream
- atob
- btoa
- createDirIfNotExists
- readFileLines
- untildify
- JSONToFile
- UUIDGeneratorNode
- colorize
- hasFlags
- hashNode
- isDuplexStream
- isReadableStream
- isStream
- isTravisCI
- isWritableStream
Chapter 7: Object related snippets
- objectFromPairs
- objectToEntries
- objectToPairs
- shallowClone
- bindAll
- deepClone
- deepFreeze
- deepGet
- defaults
- dig
- findKey
- findLastKey
- flattenObject
- forOwn
- forOwnRight
- functions
- get
- hasKey
- invertKeyValues
- lowercaseKeys
- mapKeys
- mapValues
- matches
- matchesWith
- merge
- nest
- objectToQueryString
- omit
- omitBy
- orderBy
- pick
- pickBy
- renameKeys
- size
- toPairs
- transform
- truthCheckCollection
- deepMapKeys
- equals
- unflattenObject
Chapter 8: Strings related snippets
- byteSize
- compactWhitespace
- containsWhitespace
- indentString
- isLowerCase
- isUpperCase
- mapString
- pad
- reverseString
- sortCharactersInString
- splitLines
- stripHTMLTags
- truncateString
- unescapeHTML
- CSVToArray
- RGBToHex
- capitalize
- capitalizeEveryWord
- decapitalize
- escapeHTML
- escapeRegExp
- extendHex
- fromCamelCase
- isAbsoluteURL
- isAnagram
- mask
- palindrome
- pluralize
- removeNonASCII
- toCamelCase
- toKebabCase
- toSnakeCase
- toTitleCase
- words
- yesNo
- CSVToJSON
- URLJoin
- hexToRGB
- prettyBytes
- stringPermutations
Chapter 9: Type related snippets
- castArray
- coalesce
- getType
- is
- isBoolean
- isEmpty
- isFunction
- isNil
- isNull
- isNumber
- isObject
- isObjectLike
- isString
- isSymbol
- isUndefined
- cloneRegExp
- coalesceFactory
- isArrayLike
- isPlainObject
- isPrimitive
- isPromiseLike
- isValidJSON
Bonus Projects
- Ecommerce Customer Satisfaction Project
- The data to work with
- The requirements
- Let’s build our script