Sha256: f8eaac0f6f8af658933221834f7638f6d2967dbfb21d87b8e77d4feaaf4ca7e3

Contents?: true

Size: 574 Bytes

Versions: 302

Compression:

Stored size: 574 Bytes

Contents

/**
 * A specialized version of `matchesProperty` for source values suitable
 * for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */
function matchesStrictComparable(key, srcValue) {
  return function(object) {
    if (object == null) {
      return false;
    }
    return object[key] === srcValue &&
      (srcValue !== undefined || (key in Object(object)));
  };
}

module.exports = matchesStrictComparable;

Version data entries

302 entries across 279 versions & 33 rubygems

Version Path
rapid_stack-0.2.0 templates/frontend/node_modules/lodash/_matchesStrictComparable.js
rapid_stack-0.1.1 templates/FrontEnd/node_modules/lodash/_matchesStrictComparable.js
rapid_stack-0.1.0 templates/FrontEnd/node_modules/lodash/_matchesStrictComparable.js
immosquare-cleaner-0.1.60 node_modules/lodash/_matchesStrictComparable.js
immosquare-cleaner-0.1.59 node_modules/lodash/_matchesStrictComparable.js
immosquare-cleaner-0.1.58 node_modules/lodash/_matchesStrictComparable.js
immosquare-cleaner-0.1.57 node_modules/lodash/_matchesStrictComparable.js
immosquare-cleaner-0.1.56 node_modules/lodash/_matchesStrictComparable.js
immosquare-cleaner-0.1.55 node_modules/lodash/_matchesStrictComparable.js
immosquare-cleaner-0.1.54 node_modules/lodash/_matchesStrictComparable.js
immosquare-cleaner-0.1.53 node_modules/lodash/_matchesStrictComparable.js
immosquare-cleaner-0.1.52 node_modules/lodash/_matchesStrictComparable.js
trusty-cms-6.3.1 node_modules/lodash/_matchesStrictComparable.js
immosquare-cleaner-0.1.51 node_modules/lodash/_matchesStrictComparable.js
boring_generators-0.15.0 tmp/templates/app_template/node_modules/lodash/_matchesStrictComparable.js
clapton-0.0.26 lib/clapton/javascripts/node_modules/lodash/_matchesStrictComparable.js
clapton-0.0.25 lib/clapton/javascripts/node_modules/lodash/_matchesStrictComparable.js
immosquare-cleaner-0.1.50 node_modules/lodash/_matchesStrictComparable.js
clapton-0.0.24 lib/clapton/javascripts/node_modules/lodash/_matchesStrictComparable.js
clapton-0.0.23 lib/clapton/javascripts/node_modules/lodash/_matchesStrictComparable.js