remove-duplicates-in-array

v2.1.2arrow_drop_down
v2.1.2
v2.1.1
v2.1.0
v2.0.9
v2.0.8
v2.0.6
v2.0.5
v2.0.2
v2.0.1
v1.1.1
v1.1.0
v1.0.8
v1.0.5
v1.0.4
v1.0.3
STATUS
Passing
DOWNLOADS
1,513
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
533 B
remove duplicates value from array
1 contributor
Install remove-duplicates-in-array as a package?
Copied
npm i @bit/joshk.jotils.remove-duplicates-in-array
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
No preview available
modifieddraft
chevron_left
chevron_right
removeDuplicatesInArray (
array:Array<(number | string | boolean)>
) : Array<(number | string | boolean)>

remove duplicates value from array

Example
import { removeDuplicatesInArray } from '@bit/joshk.jotils.remove-duplicates-in-array'
export default removeDuplicatesInArray([1,2,3,1,3,4]) // => [1,2,3,4]
Argument
array: Array<(number | string | boolean)>

an array

Returns
Array<(number | string | boolean)>

array without duplicates value

Test Summary

removeDuplicatesInArray return an array without duplicates value, number type

Pass

removeDuplicatesInArray return an array without duplicates value, string type

Pass
Help and resources