Sha256: 78ce86cd7f9815f492bd652eb75456d1b5bef696e70b845df5d2747b3b5bf1ea

Contents?: true

Size: 710 Bytes

Versions: 302

Compression:

Stored size: 710 Bytes

Contents

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

/**
 * 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.
 */
function baseMatches(source) {
  var matchData = getMatchData(source);
  if (matchData.length == 1 && matchData[0][2]) {
    return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  }
  return function(object) {
    return object === source || baseIsMatch(object, source, matchData);
  };
}

module.exports = baseMatches;

Version data entries

302 entries across 279 versions & 33 rubygems

Version Path
appmap-0.68.2 ./node_modules/lodash/_baseMatches.js
appmap-0.68.1 ./node_modules/lodash/_baseMatches.js
disco_app-0.15.2 test/dummy/node_modules/lodash/_baseMatches.js
appmap-0.68.0 ./node_modules/lodash/_baseMatches.js
appmap-0.67.1 ./node_modules/lodash/_baseMatches.js
trusty-cms-5.0.3 node_modules/lodash/_baseMatches.js
trusty-cms-5.0.2 node_modules/lodash/_baseMatches.js
appmap-0.67.0 ./node_modules/lodash/_baseMatches.js
disco_app-0.18.4 test/dummy/node_modules/lodash/_baseMatches.js
disco_app-0.18.1 test/dummy/node_modules/lodash/_baseMatches.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/lodash/_baseMatches.js
disco_app-0.14.0 test/dummy/node_modules/lodash/_baseMatches.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/lodash/_baseMatches.js
appmap-0.66.2 ./node_modules/lodash/_baseMatches.js
trusty-cms-5.0.1 node_modules/lodash/_baseMatches.js
trusty-cms-4.3.5 node_modules/lodash/_baseMatches.js
trusty-cms-5.0.0 node_modules/lodash/_baseMatches.js
appmap-0.66.1 ./node_modules/lodash/_baseMatches.js
appmap-0.66.0 ./node_modules/lodash/_baseMatches.js
appmap-0.65.1 ./node_modules/lodash/_baseMatches.js