Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

@pluginjs/is

Package Overview
Dependencies
0
Maintainers
2
Versions
50
Issues
File Explorer

Advanced tools

@pluginjs/is

A workflow for modern frontend development.

    0.8.8latest

Version published
Maintainers
2
Yearly downloads
6,061
decreased by-3.46%

Weekly downloads

Readme

Source

Is

npm package

is is a utility JavaScript library for type check.

Introduction

Installation

Yarn

yarn add @pluginjs/is

NPM

npm i @pluginjs/is

Getting Started

CDN:

Development:

<script src="https://unpkg.com/@pluginjs/is/dist/is.js"></script>

Production:

<script src="https://unpkg.com/@pluginjs/is/dist/is.min.js"></script>

API

isArguments

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isArguments | Boolean | |

isArray

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isArray | Boolean | |

isBoolean

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isBoolean | Boolean | |

isChar

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isChar | Boolean | |

isDate

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isDate | Boolean | |

isDomNode

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isDomNode | Boolean | |

isError

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isError | Boolean | |

isFunction

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isFunction | Boolean | |

isJson

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isJson | Boolean | |

isNaN

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isNaN | Boolean | |

isNull

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isNull | Boolean | |

isNumber

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isNumber | Boolean | |

isObject

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isObject | Boolean | |

isPlainObject

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isPlainObject | Boolean | |

isEmptyObject

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isEmptyObject | Boolean | |

isRegexp

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isRegexp | Boolean | |

isString

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isString | Boolean | |

isUndefined

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isUndefined | Boolean | |

isNumeric

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isNumeric | Boolean | |

isPercentage

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isPercentage | Boolean | |

isDecimal

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isDecimal | Boolean | |

isFinite

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isFinite | Boolean | |

isInfinite

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isInfinite | Boolean | |

isInteger

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isInteger | Boolean | |

isNegative

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isNegative | Boolean | |

isPositive

Parameters

| Name | Type | Description | |||-| | value | String | |

Returns

| Name | Type | Description | |||-| | isPositive | Boolean | |

Browser support

Tested on all major browsers.

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Opera
Opera
IE11, Edgelast 2 versionslast 2 versionslast 2 versionslast 2 versions

License

@pluginjs/is is Licensed under the GPL-v3 license.

If you want to use @pluginjs/is project to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary.

For purchase an Commercial License, contact us [email protected].

Copyright (C) 2022 Creation Studio Limited.

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc