Skip to content

validator.nucleus

Sebastien Filion edited this page May 12, 2018 · 1 revision

Global


isArray(value)

Validates that the value is an Array.

Parameters

value: Array, Validates that the value is an Array.

Returns: Boolean

isFunction(value)

Validates that the value is a Function.

Parameters

value: function | *, Validates that the value is a Function.

Returns: boolean

isNumber(value)

Validates that the value is a Number.

Parameters

value: Number | *, Validates that the value is a Number.

Returns: Boolean

isObject(value)

Validates that the value is an Object.

Parameters

value: Object | *, Validates that the value is an Object.

Returns: Boolean

isObjectLike(value)

Validates that the value is object-like; that it has the prototype of an object, that it is not an array and that the stringified primitive might have been modified.

Parameters

value: Object | *, Validates that the value is object-like; that it has the prototype of an object, that it is not an array and that the stringified primitive might have been modified.

Returns: boolean

isString(value)

Validates that the value is a String.

Parameters

value: String | *, Validates that the value is a String.

Returns: Boolean

shiftFirstLetterToLowerCase(string)

Replaces the first letter to lower case.

Parameters

string: String | *, Replaces the first letter to lower case.

Returns: String


Author: Sebastien Filion

Overview: Abstract various validation tools.