1 contributor
Like
Install includes as a package?
Copied
npm i @bit/joshk.jotils.includes
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraftmodifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
No preview available
chevron_left
chevron_right
includes (
array:
Array
,value:
) : (string | number)
boolean
check if value is include in array
Examples
Arguments
array:
Array
array of string or number
value:
(string | number)
a value to check if is include
Returns
boolean
true or false if is include or not
Test Summary
includes return true when value is include in array | Pass |
includes return false when value is not include in array | Pass |