jxa-lib
    Preparing search index...

    Function propExecEq

    • Create a function that checks if evaluating a property on the passed in object as a function is equal to the second argument.

      Type Parameters

      • S extends string | number | symbol
      • VT
      • T extends Record<S, (args?: AT) => VT>
      • AT = object

      Parameters

      • name: S

        The name of the property to evaluate.

      • value: VT

        The value to compare against.

      Returns (x: T, args?: AT) => boolean

      A function that takes an object and optional arguments, evaluates the property as a function, and checks if the result is equal to the value.