COLLECTED BY
Organization:
Internet Archive
Focused crawls are collections of frequently-updated webcrawl data from narrow (as opposed to broad or wide) web crawls, often focused on a single domain or subdomain.
The Wayback Machine - https://web.archive.org/web/20201220220724/https://github.com/lodash/lodash/blob/master/eq.js
Permalink
Cannot retrieve contributors at this time
35 lines (34 sloc)
756 Bytes
/**
* Performs a
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
* comparison between two values to determine if they are equivalent.
*
* @since 4.0.0
* @category Lang
* @param {* } value The value to compare.
* @param {* } other The other value to compare.
* @returns {boolean } Returns `true` if the values are equivalent, else `false`.
* @example
*
* const object = { 'a': 1 }
* const other = { 'a': 1 }
*
* eq(object, object)
* // => true
*
* eq(object, other)
* // => false
*
* eq('a', 'a')
* // => true
*
* eq('a', Object('a'))
* // => false
*
* eq(NaN, NaN)
* // => true
*/
function eq ( value , other ) {
return value === other || ( value !== value && other !== other )
}
export default eq
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.