mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Remove semicolons.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import baseIsEqual from './.internal/baseIsEqual.js';
|
||||
import baseIsEqual from './.internal/baseIsEqual.js'
|
||||
|
||||
/**
|
||||
* This method is like `isEqual` except that it accepts `customizer` which
|
||||
@@ -15,25 +15,25 @@ import baseIsEqual from './.internal/baseIsEqual.js';
|
||||
* @example
|
||||
*
|
||||
* function isGreeting(value) {
|
||||
* return /^h(?:i|ello)$/.test(value);
|
||||
* return /^h(?:i|ello)$/.test(value)
|
||||
* }
|
||||
*
|
||||
* function customizer(objValue, othValue) {
|
||||
* if (isGreeting(objValue) && isGreeting(othValue)) {
|
||||
* return true;
|
||||
* return true
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* const array = ['hello', 'goodbye'];
|
||||
* const other = ['hi', 'goodbye'];
|
||||
* const array = ['hello', 'goodbye']
|
||||
* const other = ['hi', 'goodbye']
|
||||
*
|
||||
* isEqualWith(array, other, customizer);
|
||||
* isEqualWith(array, other, customizer)
|
||||
* // => true
|
||||
*/
|
||||
function isEqualWith(value, other, customizer) {
|
||||
customizer = typeof customizer == 'function' ? customizer : undefined;
|
||||
const result = customizer ? customizer(value, other) : undefined;
|
||||
return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;
|
||||
customizer = typeof customizer == 'function' ? customizer : undefined
|
||||
const result = customizer ? customizer(value, other) : undefined
|
||||
return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result
|
||||
}
|
||||
|
||||
export default isEqualWith;
|
||||
export default isEqualWith
|
||||
|
||||
Reference in New Issue
Block a user