Provides basic array helper methods.
- internal
Trait
| Methods |
| private arrayFilterRemoveNull(array $arr) Just like array_filter(), but preserves falsey values except null.
|
| private arrayMergeRecursive(array $array1, array $array2) A method, similar to PHP's
|
| private isAssoc(array $arr) Determine whether given array is associative.
|
| private pluck(string $key, array $arr, bool $isRequired = true) Pluck a value out of an array.
|
| private pluckArray(array $keys, array $arr) Pluck a subset of an array.
|
| private subsetArray(array $keys, array $arr) Return a subset of an array, like pluckArray, without modifying the original array.
|