NewIntroducing Arbiter AI. Experience the boundless capabilities of AI, right inside Arbiter. Check it out
  • Intro
    • Automations
    • Complex Decision-Making
    • Integrations
  • Docs
  • Support
  • Pricing
Try Arbiter

    Introduction

  • What is Arbiter?
    • Overview
    • Automations and Integrations
    • Decision-Making Software
    • Overview
    • Configure the Start Node
    • Connect to an HTTP API
    • Use Processor for Math Calculations
    • Add Conditions with Rule Node
    • Output Data and Workflow Tests
  • Concepts
  • Workflows

  • Projects
    • Intro
    • Workflow data state
    • Result schema
    • Canvas actions
    • Start node
    • Connector node
    • Rule node
    • Processor node
    • Workflow node
    • Setter node
    • Intro
    • Http request
    • Intro
      • Overview
        • Overview
        • Text
        • Date and Time
        • Math
        • Overview
        • Text Template
        • Find
        • Filter
  • Variables
    • Checkpoints
    • Workflows status
  • Data Types
  • Input Parameters Form
  • Arbiter AI
  • Visibility and Audit
  • Troubleshoot & FAQ

  • Roadmap
  • Changelog
Type '/' to Search

•Find

Returns the first element in the provided array that satisfies provided expression.

•Input parameters object

  • array (array: [] any of allowed types) - List of items.

  • predicate text: <required> - An expression that takes one item as input and returns either true or false based on whether the item satisfies some condition.

•Output parameters object

  • item (any of allowed types: <required>) - Returns the matched element, else undefined.

•Example

array:  [
  { 'user': 'barney',  'age': 36, 'active': true },
  { 'user': 'fred',    'age': 40, 'active': false },
  { 'user': 'pebbles', 'age': 56,  'active': true }
]

predicate: 'o => o.age < 40'

output: { 'item': { 'user': 'barney',  'age': 36, 'active': true }}
array:  [  { 'user': 'barney',  'age': 36, 'active': true },  { 'user': 'fred',    'age': 40, 'active': false },  { 'user': 'pebbles', 'age': 56,  'active': true }]
predicate: 'o => o.age < 40'
output: { 'item': { 'user': 'barney',  'age': 36, 'active': true }}

•Demo

DocsContactLegalCookies
©2022-2023 Arbiter Technologies Ltd. All rights reserved.