Sign In

is-a-string

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-a-string

A package that checks if an input is a string

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
126
240.54%
Maintainers
1
Weekly downloads
 
Created
Source

is-a-string

Returns true if the input is a string.

Install

yarn add is-a-string 
#or
npm install is-a-string

Usage

var isAString = require('is-a-string');

isAString(3);
//=> false
isAString("3");
//=> true
isAString("Hey");
//=> true
isAString([1, 2, 3]);
//=> false

Running tests

yarn 
yarn test

FAQs

Package last updated on 21 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts