Class: is

is~ is

new is()

Модуль работы с типами данных.
Source:

Members

(static) class :object

Строковое представление классов типов данных.
Type:
Source:

(static) reNative :regexp

Регулярное выражение для проверки функции на нативную.
Type:
  • regexp
Source:

(static) toString :function

Нативный метод приведения к строковому представлению.
Type:
  • function
Source:

Methods

(static) argument(…subject) → {boolean}

Проверить параметры на аргументы.
Parameters:
Name Type Attributes Description
subject * <repeatable>
Параметры
Source:
Returns:
Type
boolean

(static) array(…subject) → {boolean}

Проверить параметры на массив.
Parameters:
Name Type Attributes Description
subject * <repeatable>
Параметры
Source:
Returns:
Type
boolean

(static) boolean(…subject) → {boolean}

Проверить параметры на логический тип.
Parameters:
Name Type Attributes Description
subject * <repeatable>
Параметры
Source:
Returns:
Type
boolean

(static) date(…subject) → {boolean}

Проверить параметры на дату.
Parameters:
Name Type Attributes Description
subject * <repeatable>
Параметры
Source:
Returns:
Type
boolean

(static) every(…subject) → {boolean}

Проверить параметры на единый тип данных.
Parameters:
Name Type Attributes Description
subject * <repeatable>
Параметры
Source:
Returns:
Type
boolean

(static) float(…subject) → {boolean}

Проверить параметры на дробное число.
Parameters:
Name Type Attributes Description
subject * <repeatable>
Параметры
Source:
Returns:
Type
boolean

(static) function(…subject) → {boolean}

Проверить параметры на функцию.
Parameters:
Name Type Attributes Description
subject * <repeatable>
Параметры
Source:
Returns:
Type
boolean

(static) integer(…subject) → {boolean}

Проверить параметры на целое число.
Parameters:
Name Type Attributes Description
subject * <repeatable>
Параметры
Source:
Returns:
Type
boolean

(static) map(…subject) → {boolean}

Проверить параметры на простой объект (хэш/карту).
Parameters:
Name Type Attributes Description
subject * <repeatable>
Параметры
Source:
Returns:
Type
boolean

(static) nan(…subject) → {boolean}

Проверить параметры на NaN.
Parameters:
Name Type Attributes Description
subject * <repeatable>
Параметры
Source:
Returns:
Type
boolean

(static) native(…subject) → {boolean}

Проверить параметры на нативную функцию.
Parameters:
Name Type Attributes Description
subject * <repeatable>
Параметры
Source:
Returns:
Type
boolean

(static) null(…subject) → {boolean}

Проверить параметры на null.
Parameters:
Name Type Attributes Description
subject * <repeatable>
Параметры
Source:
Returns:
Type
boolean

(static) number(…subject) → {boolean}

Проверить параметры на число.
Parameters:
Name Type Attributes Description
subject * <repeatable>
Параметры
Source:
Returns:
Type
boolean

(static) primitive(…subject) → {boolean}

Проверить параметры на примитив.
Parameters:
Name Type Attributes Description
subject * <repeatable>
Параметры
Source:
Returns:
Type
boolean

(static) regexp(…subject) → {boolean}

Проверить параметры на регулярное выражение.
Parameters:
Name Type Attributes Description
subject * <repeatable>
Параметры
Source:
Returns:
Type
boolean

(static) string(…subject) → {boolean}

Проверить параметры на строку.
Parameters:
Name Type Attributes Description
subject * <repeatable>
Параметры
Source:
Returns:
Type
boolean

(static) type(…subject) → {string}

Узнать тип параметров. Для параметров различных типов данных будет возвращён `mixed`.
Parameters:
Name Type Attributes Description
subject * <repeatable>
Параметры
Source:
Returns:
Type
string

(static) undefined(…subject) → {boolean}

Проверить параметры на undefined.
Parameters:
Name Type Attributes Description
subject * <repeatable>
Параметры
Source:
Returns:
Type
boolean