eq(propertyName: String, valueOrPropertyName: String || any) | Tests if two props (or a prop and a value) are equal. |
notEq(propertyName: String, valueOrPropertyName: String || any) | Tests if two props (or a prop and a value) are not equal. |
not(propertyName: String, ...) | Returns true if all specified properties are falsey. |
and(properyName: String, ...) | Returns true if all specified properties are truthy. |
or(properyName: String, ...) | Returns true if any specified properties are truthy. |
xor(properyName1: String, propertyName2: String) | Returns true if the specified properties are not equal. |
gt(numericProperyName: String, valueOrPropertyName: String || Number) | Returns true if the specified property is greater than another property or numeric value. |
gte(numericProperyName: String, valueOrPropertyName: String || Number) | Returns true if the specified property is equal to or greater than another property or numeric value. |
lt(numericProperyName: String, valueOrPropertyName: String || Number) | Returns true if the specified property is less than another property or numeric value. |
gte(numericProperyName: String, valueOrPropertyName: String || Number) | Returns true if the specified property is equal to or less than another property or numeric value. |
sum(valueOrPropertyName: String || Number, ...) | Returns the sum of all specified properties and values. |
alias(propertyName: String) | Returns the specified property. Not particularly useful except maybe as a pointer. |
bool(propertyName: String) | Casts the specified property to a Boolean value. |
empty(propertyName: String) | Returns true if the specified property is falsey or has a length of 0. |
min(arrayProperyName: String) | Returns the lowest value of an array of numeric values. |
max(arrayProperyName: String) | Returns the highest value of an array of numeric values. |
filter(arrayProperyName: String, comparator: Function) | Filters an array property with the provided filter function. |
filterBy(arrayProperyName: String, key: String, value: any) | Filters an array of objects by key, preserving any key that matches the provided value. |
map(arrayProperyName: String, mapper: Function) | Maps an array of objects with the provided mapping function. |
mapBy(arrayPropertyName: String, key: String) | Maps an array of objects into an array of values from those objects specified by the key provided. |
count(arrayPropertyName: String) | Counts the number of elements in an array. |
countBy(arrayProperyName: String, key: String, value: any) | Counts the number of elements in an array of objects that match the key and value provided. |