* The base implementation of `_.matches` which doesn't clone `source`. * * @private * @param {Object} source The object of property values to match. * @returns {Function} Returns the new spec function.
(source)
| 3600 | * @returns {Function} Returns the new spec function. |
| 3601 | */ |
| 3602 | function baseMatches(source) { |
| 3603 | var matchData = getMatchData(source); |
| 3604 | if (matchData.length == 1 && matchData[0][2]) { |
| 3605 | return matchesStrictComparable(matchData[0][0], matchData[0][1]); |
| 3606 | } |
| 3607 | return function(object) { |
| 3608 | return object === source || baseIsMatch(object, source, matchData); |
| 3609 | }; |
| 3610 | } |
| 3611 | |
| 3612 | /** |
| 3613 | * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`. |
no test coverage detected