is-unique-in-array
v2.1.1arrow_drop_downv2.1.1
v2.1.0
v2.0.9
v2.0.8
v2.0.6
v2.0.5
v2.0.1
v1.1.1
v1.1.0
v1.0.8
v1.0.7
v1.0.6
STATUS
Passing
DOWNLOADS
1,267
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
546 B
check if value is unique in array
1 contributor
Like
Install is-unique-in-array as a package?
Copied
npm i @bit/joshk.jotils.is-unique-in-array
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
isUniqueInArray (
array:
Array
,value:
) : any
boolean
check if value is unique in array
Examples
Arguments
array:
Array
array
value:
any
a value to check if is unique
Returns
boolean
true or false if is unique or not
Test Summary
isUniqueInArray return true when value is unique in array | Pass |
isUniqueInArray return false when value is not unique in array | Pass |
isUniqueInArray return true when value is unique in array | Pass |
isUniqueInArray return null when value is not exist in the array | Pass |