PHP 8.2.30
Preview: matchesProperty.js Size: 957 B
//opt/alt/alt-nodejs9/root/lib/node_modules/npm/node_modules/cli-table2/node_modules/lodash/utility/matchesProperty.js

var baseClone = require('../internal/baseClone'),
    baseMatchesProperty = require('../internal/baseMatchesProperty');

/**
 * Creates a function that compares the property value of `path` on a given
 * object to `value`.
 *
 * **Note:** This method supports comparing arrays, booleans, `Date` objects,
 * numbers, `Object` objects, regexes, and strings. Objects are compared by
 * their own, not inherited, enumerable properties.
 *
 * @static
 * @memberOf _
 * @category Utility
 * @param {Array|string} path The path of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new function.
 * @example
 *
 * var users = [
 *   { 'user': 'barney' },
 *   { 'user': 'fred' }
 * ];
 *
 * _.find(users, _.matchesProperty('user', 'fred'));
 * // => { 'user': 'fred' }
 */
function matchesProperty(path, srcValue) {
  return baseMatchesProperty(path, baseClone(srcValue, true));
}

module.exports = matchesProperty;

Directory Contents

Dirs: 0 × Files: 16

Name Size Perms Modified Actions
839 B lrw-r--r-- 2021-09-28 11:28:36
Edit Download
1.70 KB lrw-r--r-- 2021-09-28 11:28:36
Edit Download
444 B lrw-r--r-- 2021-09-28 11:28:36
Edit Download
355 B lrw-r--r-- 2021-09-28 11:28:36
Edit Download
40 B lrw-r--r-- 2021-09-28 11:28:36
Edit Download
1.10 KB lrw-r--r-- 2021-09-28 11:28:36
Edit Download
957 B lrw-r--r-- 2021-09-28 11:28:36
Edit Download
907 B lrw-r--r-- 2021-09-28 11:28:36
Edit Download
912 B lrw-r--r-- 2021-09-28 11:28:36
Edit Download
2.37 KB lrw-r--r-- 2021-09-28 11:28:36
Edit Download
328 B lrw-r--r-- 2021-09-28 11:28:36
Edit Download
799 B lrw-r--r-- 2021-09-28 11:28:36
Edit Download
764 B lrw-r--r-- 2021-09-28 11:28:36
Edit Download
1.66 KB lrw-r--r-- 2021-09-28 11:28:36
Edit Download
1.68 KB lrw-r--r-- 2021-09-28 11:28:36
Edit Download
570 B lrw-r--r-- 2021-09-28 11:28:36
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).