0.0.1 • Published 2 years ago

@untile/react-core-utils v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

react-core-utils

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

Installation

$ yarn install @untile/react-core-utils

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
0.0.1

2 years ago