mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
Remove semicolons.
This commit is contained in:
14
isMatch.js
14
isMatch.js
@@ -1,5 +1,5 @@
|
||||
import baseIsMatch from './.internal/baseIsMatch.js';
|
||||
import getMatchData from './.internal/getMatchData.js';
|
||||
import baseIsMatch from './.internal/baseIsMatch.js'
|
||||
import getMatchData from './.internal/getMatchData.js'
|
||||
|
||||
/**
|
||||
* Performs a partial deep comparison between `object` and `source` to
|
||||
@@ -19,16 +19,16 @@ import getMatchData from './.internal/getMatchData.js';
|
||||
* @returns {boolean} Returns `true` if `object` is a match, else `false`.
|
||||
* @example
|
||||
*
|
||||
* const object = { 'a': 1, 'b': 2 };
|
||||
* const object = { 'a': 1, 'b': 2 }
|
||||
*
|
||||
* isMatch(object, { 'b': 2 });
|
||||
* isMatch(object, { 'b': 2 })
|
||||
* // => true
|
||||
*
|
||||
* isMatch(object, { 'b': 1 });
|
||||
* isMatch(object, { 'b': 1 })
|
||||
* // => false
|
||||
*/
|
||||
function isMatch(object, source) {
|
||||
return object === source || baseIsMatch(object, source, getMatchData(source));
|
||||
return object === source || baseIsMatch(object, source, getMatchData(source))
|
||||
}
|
||||
|
||||
export default isMatch;
|
||||
export default isMatch
|
||||
|
||||
Reference in New Issue
Block a user