Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 526 Bytes

File metadata and controls

27 lines (18 loc) · 526 Bytes

🛠️ React utils

A collection of Untile utilities to build web applications based on typescript.

Utils

isExternalUrl

This function checks if the string path is an external url.

Type

isExternalUrl(url: string): boolean

Usage

import { isExternalUrl } from '@untile/react-core/utils/is-external-url';

isExternalUrl('http://foo.bar'); // true
isExternalUrl('/foo/bar'); // false