CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
omitBy.js30 linesDownload Raw Back to lodash
1var baseIteratee = require('./_baseIteratee'),2    negate = require('./negate'),3    pickBy = require('./pickBy');4 5/**6 * The opposite of `_.pickBy`; this method creates an object composed of7 * the own and inherited enumerable string keyed properties of `object` that8 * `predicate` doesn't return truthy for. The predicate is invoked with two9 * arguments: (value, key).10 *11 * @static12 * @memberOf _13 * @since 4.0.014 * @category Object15 * @param {Object} object The source object.16 * @param {Function} [predicate=_.identity] The function invoked per property.17 * @returns {Object} Returns the new object.18 * @example19 *20 * var object = { 'a': 1, 'b': '2', 'c': 3 };21 *22 * _.omitBy(object, _.isNumber);23 * // => { 'b': '2' }24 */25function omitBy(object, predicate) {26  return pickBy(object, negate(baseIteratee(predicate)));27}28 29module.exports = omitBy;30 
basant307/AI_Governance_Project · CoolFace