Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lvchengbin/is

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lvchengbin/is

A library, which is possible to be imported as ES6 module separately, for checking the type of a value.

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2K
increased by1.09%
Maintainers
1
Weekly downloads
 
Created
Source

Is

A JavaScript library for checking the type of a value for browsers.

Installing

npm i @lvchengbin/is --save

Usage

Generally, when we are using some toolkit such as rollup, we don't want to compile a huge library into our project, therefore, to import the files you really need.

import isFunction from '@lvchengbin/is/src/function';
import array from '@lvchengbin/is/src/array';

isFunction( async () => {} );
isArray( [] );

If you want to invoke the whole package:

import is from '@lvchengbin/is';

is.function( () => {} );
is.array( [] );

Method List

is.arguments

import isArguments from '@lvchengbin/is/src/arguments;

is.array

import isArray from '@lvchengbin/is/src/array;

is.arrowFunction

import isArrowFunction from '@lvchengbin/is/src/arrow-function;

asyncFunction

import isAsyncFunction from '@lvchengbin/is/src/async-function;

boolean

import isBoolean from '@lvchengbin/is/src/boolean;

date

import isDate from '@lvchengbin/is/src/date;

email

import isEmail from '@lvchengbin/is/src/email;

empty

import isEmpty from '@lvchengbin/is/src/empty;

error

import isError from '@lvchengbin/is/src/error;

false

import isFalse from '@lvchengbin/is/src/false;

function

import isFunction from '@lvchengbin/is/src/function;

integer

import isInteger from '@lvchengbin/is/src/integer;

iterable

import isIterable from '@lvchengbin/is/src/iterable;

number

import isNumber from '@lvchengbin/is/src/number;

object

import isObject from '@lvchengbin/is/src/object;

promise

import isPromise from '@lvchengbin/is/src/promise;

regexp

import isRegExp from '@lvchengbin/is/src/regexp;

string

import isString from '@lvchengbin/is/src/string;

true

import isTrue from '@lvchengbin/is/src/true;

undefined

import isUndefined from '@lvchengbin/is/src/undefined;

url

import isUrl from '@lvchengbin/is/src/url;

Keywords

FAQs

Package last updated on 16 Jan 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc