fix(lib): Loosen Array
predicate return types
#31076
Merged
Array
predicate return types
#31076