Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(isURL): Add isURL predicate function #970

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yeophs
Copy link

@yeophs yeophs commented Feb 28, 2025

Checks if a value is a valid URL string.

Uses JavaScript's built-in URL constructor to validate the URL.
Valid URL format must include a protocol (http, https, etc.).

@yeophs yeophs requested a review from raon0211 as a code owner February 28, 2025 11:04
Copy link

vercel bot commented Feb 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
es-toolkit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 11:08am

@johnpyp
Copy link

johnpyp commented Mar 19, 2025

This can use canParse for better performance (avoids an Error getting thrown and caught)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants