• The opposite of _.pickBy; this method creates an object composed of the own and inherited enumerable properties of object that predicate doesn't return truthy for.

    Type Parameters

    • T

    Parameters

    • object: undefined | null | Dictionary<T>

      The source object.

    • Optionalpredicate: ValueKeyIteratee<T>

      The function invoked per property.

    Returns Dictionary<T>

    Returns the new object.

    var object = { 'a': 1, 'b': '2', 'c': 3 };

    _.omitBy(object, _.isNumber);
    // => { 'b': '2' }
  • Type Parameters

    • T

    Parameters

    • object: undefined | null | NumericDictionary<T>
    • Optionalpredicate: ValueKeyIteratee<T>

    Returns NumericDictionary<T>

    _.omitBy

  • Type Parameters

    • T extends object

    Parameters

    • object: undefined | null | T
    • predicate: ValueKeyIteratee<T[keyof T]>

    Returns Partial<T>

    _.omitBy