Sha256: 67c8e0de8c0c3209fbc506831bc09fc4330266d468f90bbc2ceb5d3c92bd93c8

Contents?: true

Size: 1.3 KB

Versions: 300

Compression:

Stored size: 1.3 KB

Contents

var baseIsMatch = require('./_baseIsMatch'),
    getMatchData = require('./_getMatchData');

/**
 * This method is like `_.isMatch` except that it accepts `customizer` which
 * is invoked to compare values. If `customizer` returns `undefined`, comparisons
 * are handled by the method instead. The `customizer` is invoked with five
 * arguments: (objValue, srcValue, index|key, object, source).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {Object} object The object to inspect.
 * @param {Object} source The object of property values to match.
 * @param {Function} [customizer] The function to customize comparisons.
 * @returns {boolean} Returns `true` if `object` is a match, else `false`.
 * @example
 *
 * function isGreeting(value) {
 *   return /^h(?:i|ello)$/.test(value);
 * }
 *
 * function customizer(objValue, srcValue) {
 *   if (isGreeting(objValue) && isGreeting(srcValue)) {
 *     return true;
 *   }
 * }
 *
 * var object = { 'greeting': 'hello' };
 * var source = { 'greeting': 'hi' };
 *
 * _.isMatchWith(object, source, customizer);
 * // => true
 */
function isMatchWith(object, source, customizer) {
  customizer = typeof customizer == 'function' ? customizer : undefined;
  return baseIsMatch(object, source, getMatchData(source), customizer);
}

module.exports = isMatchWith;

Version data entries

300 entries across 276 versions & 32 rubygems

Version Path
immosquare-cleaner-0.1.60 node_modules/lodash/isMatchWith.js
immosquare-cleaner-0.1.59 node_modules/lodash/isMatchWith.js
immosquare-cleaner-0.1.58 node_modules/lodash/isMatchWith.js
immosquare-cleaner-0.1.57 node_modules/lodash/isMatchWith.js
immosquare-cleaner-0.1.56 node_modules/lodash/isMatchWith.js
immosquare-cleaner-0.1.55 node_modules/lodash/isMatchWith.js
immosquare-cleaner-0.1.54 node_modules/lodash/isMatchWith.js
immosquare-cleaner-0.1.53 node_modules/lodash/isMatchWith.js
immosquare-cleaner-0.1.52 node_modules/lodash/isMatchWith.js
trusty-cms-6.3.1 node_modules/lodash/isMatchWith.js
immosquare-cleaner-0.1.51 node_modules/lodash/isMatchWith.js
boring_generators-0.15.0 tmp/templates/app_template/node_modules/lodash/isMatchWith.js
clapton-0.0.26 lib/clapton/javascripts/node_modules/lodash/isMatchWith.js
clapton-0.0.25 lib/clapton/javascripts/node_modules/lodash/isMatchWith.js
immosquare-cleaner-0.1.50 node_modules/lodash/isMatchWith.js
clapton-0.0.24 lib/clapton/javascripts/node_modules/lodash/isMatchWith.js
clapton-0.0.23 lib/clapton/javascripts/node_modules/lodash/isMatchWith.js
clapton-0.0.22 lib/clapton/javascripts/node_modules/lodash/isMatchWith.js
clapton-0.0.21 lib/clapton/javascripts/node_modules/lodash/isMatchWith.js
clapton-0.0.20 lib/clapton/javascripts/node_modules/lodash/isMatchWith.js