app-array

On this page:

includes

Summary

Finds if an array contains an element.

Description

Determines whether an array includes a certain element, returning true or false as appropriate.

Route

POST /array/includes

Roles

admin

Parameters

DetailsExampleSchema
Name Type Required Description
arr array yes The array to search
searchElement * yes The element to search for
fromIndex number no The position in the array to begin searching for searchElement

Return

DetailsExampleSchema
Name Type Description
result boolean True if the value searchElement is found within the array; false otherwise