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