ERXArrayUtilities.RemoveNullValuesOperator Class Reference
Inherits
er::extensions::foundation::ERXArrayUtilities::BaseOperator.
List of all members.
Detailed Description
Define an
NSArray.Operator for the key
removeNullValues.
This allows for key value paths like:
myArray.valueForKeyPath("@removeNullValues.someOtherPath");
Which in this case would remove the occurrences of NSKeyValueCoding.Null from myArray before continuing to process someOtherPath.
- See also:
- BaseOperator
Constructor & Destructor Documentation
Member Function Documentation
| Object compute |
( |
NSArray<?> |
array, |
|
|
String |
keypath | |
|
) |
| | |
Removes null values from the given array.
- Parameters:
-
| array | array to be filtered. |
| keypath | the key path to follow after filtering |
- Returns:
- the value produced by following keypath after filtering nulls from the array
The documentation for this class was generated from the following file: