typescript-go
typescript-go copied to clipboard
refactor: use slices.Contains and slices.ContainsFunc to simplify code
There is a new function added in the go1.21 standard library, which can make the code more concise and easy to read.
@microsoft-github-policy-service agree
I'm going to close this; I think we're going to apply these using the new modernize tool by the Go team in bulk.
I'll also note that you sent this PR from your main branch; that is likely to cause problems if you want to send code to this repo, so I would suggest resetting your fork and sending future code via a different branch.