fp-filters - v0.5.3
    Preparing search index...

    Function hasProp

    • Higher-order function. Returns a function that checks if the argument has the specified prop. It can check:

      1. if the prop exists
      2. if the prop is equal to a value
      3. if it passes a filter

      Parameters

      • propertyName: string
      • f: TPredicate<unknown[]>

      Returns TPredicate<[object]>

    • Higher-order function. Returns a function that checks if the argument has the specified prop. It can check:

      1. if the prop exists
      2. if the prop is equal to a value
      3. if it passes a filter

      Parameters

      • propertyName: string
      • Optionalvalue: unknown

      Returns TPredicate<[object]>