@chriscodesthings/is-string
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

is-string
Test workflow status NPM Version License: MIT

Function to determine if something is a string type

Description

Tests a variable to see if it's a string.

See...


Install

npm install --save @chriscodesthings/is-string

Usage

import isString from '@chriscodesthings/is-string';

console.log(isString("hello world!"));
// => true

Syntax

isString(var);

Parameters

  • var: any variable to test

Return Value

Returns boolean true if var is a string, false otherwise.

See Also...

Readme

Keywords

Package Sidebar

Install

npm i @chriscodesthings/is-string

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

5.44 kB

Total Files

8

Last publish

Collaborators

  • chriscodesthings