mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Remove semicolons.
This commit is contained in:
18
eq.js
18
eq.js
@@ -10,26 +10,26 @@
|
||||
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
||||
* @example
|
||||
*
|
||||
* const object = { 'a': 1 };
|
||||
* const other = { 'a': 1 };
|
||||
* const object = { 'a': 1 }
|
||||
* const other = { 'a': 1 }
|
||||
*
|
||||
* eq(object, object);
|
||||
* eq(object, object)
|
||||
* // => true
|
||||
*
|
||||
* eq(object, other);
|
||||
* eq(object, other)
|
||||
* // => false
|
||||
*
|
||||
* eq('a', 'a');
|
||||
* eq('a', 'a')
|
||||
* // => true
|
||||
*
|
||||
* eq('a', Object('a'));
|
||||
* eq('a', Object('a'))
|
||||
* // => false
|
||||
*
|
||||
* eq(NaN, NaN);
|
||||
* eq(NaN, NaN)
|
||||
* // => true
|
||||
*/
|
||||
function eq(value, other) {
|
||||
return value === other || (value !== value && other !== other);
|
||||
return value === other || (value !== value && other !== other)
|
||||
}
|
||||
|
||||
export default eq;
|
||||
export default eq
|
||||
|
||||
Reference in New Issue
Block a user