IsArray

Monster/Constraints. IsArray

you can call the method via the monster namespace new Monster.Constraint.IsObject().

<script type="module">
import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.5.0/dist/modules/constraints/isarray.js';
console.log(new Monster.Constraint.IsArray())
</script>

Alternatively, you can also integrate this function individually.

<script type="module">
import {IsArray} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.5.0/dist/modules/constraints/isarray.js';
console.log(new IsArray())
</script>

Constructor

new IsArray()

Source:
Since:
  • 1.3.0

Methods

isValid(value) → {Promise}

Source:

this method return a promise containing the result of the check.

Parameters:
Name Type Description
value *
Returns:
Type
Promise