Refactor method for readibility
What does this MR do and why?
Use some
instead of find
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Nothing changes visually
How to set up and validate locally
Simply run yarn jest ee/spec/frontend/security_dashboard/components/shared/filtered_search/tokens/status_token_spec.js
Related to #440673 (closed)