Skip to content

Conversation

@jonathanhefner
Copy link
Member

We do not need to construct an array of nils; we merely need to determine whether any are present in the values array and remove them. Thus, we can use compact! instead of extract!.

We do not need to construct an array of `nil`s; we merely need to determine whether any are present in the values array and remove them. Thus, we can use `compact!` instead of `extract!`.
@jonathanhefner jonathanhefner merged commit 6828546 into rails:main Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant