### difference
返回两个数组之间的差异。
从`b`创建`Set`, 然后使用`Array.filter()`on 只保留`a``b`中不包含的值.
~~~js
const difference = (a, b) => { const s = new Set(b); return a.filter(x => !s.has(x)); };
// difference([1,2,3], [1,2,4]) -> [3]
~~~
- 数组类
- arrayMax
- arrayMin
- chunk
- compact
- countOccurrences
- deepFlatten
- difference
- distinctValuesOfArray
- dropElements
- everyNth
- filterNonUnique
- flatten
- flattenDepth
- groupby
- head
- initial
- initializeArrayWithRange
- initializeArrayWithValues
- intersection
- last
- mapObject
- nthElement
- pick
- pull
- remove
- sample
- shuffle
- similarity
- symmetricDifference
- tail
- take
- takeRight
- union
- without
- zip
- 浏览器
- bottomVisible
- currentURL
- elementIsVisibleInViewport
- getScrollPosition
- getURLParameters
- redirect
- scrollToTop
- 日期
- getDaysDiffBetweenDates
- JSONToDate
- toEnglishDate
- 函数类
- chainAsync
- compose
- curry
- functionName
- pipe
- promisify
- runPromisesInSeries
- sleep
- 数学
- arrayAverage
- arraySum
- collatz
- digitize
- distance
- factorial
- fibonacci
- gcd
- hammingDistance
- isDivisible
- iseven
- lcm
- median
- palindrome
- percentile
- powerset
- randomIntegerInRange
- randomNumberInRange
- round
- standardDeviation
- 媒体
- speechSynthesis
- 节点
- JSONToFile
- readFileLines
- 对象
- cleanObj
- objectFromPairs
- objectToPairs
- shallowClone
- truthCheckCollection
- 字符串
- anagrams
- Capitalize
- capitalizeEveryWord
- escapeRegExp
- fromCamelCase
- reverseString
- sortCharactersInString
- toCamelCase
- truncateString
- 实用
- coalesce
- coalesceFactory
- extendHex
- gettype
- hexToRGB
- isArray
- isBoolean
- isFunction
- isNumber
- isString
- isSymbol
- RGBToHex
- timeTaken
- toOrdinalSuffix
- UUIDGenerator
- validateEmail
- validateNumber
- copy
- clone
- throttle
- Shake
- isSupportTouch