Description
Loops through each item in the passed array and returns the item that has a range that the specified value falls within.
Input Parameters
Name | Type | Required | Description |
---|---|---|---|
array | Any | Yes | Array of Json objects |
attrRange1 | Text | Yes | Property name whose numeric value indicates the start of the range |
attrRange2 | Text | Yes | Property name whose numeric value indicates the end of the range |
value | Number | Yes | Numeric value that is checked whether or not it is within each item's numeric range |
Returns
Type: Any
Returns the Json object from the passed array whose range the specified value falls within.
Examples
Remarks
Use this function when you have an array of Json objects and you want to find a particular object based on whether or not a specified value falls within a numeric range identified by two specified properties that exist on every object in the array.