array-duplicated
Return duplicated values in a given Array
//=> ['b', true];
Installation
npm install array-duplicated
API
;
arrayDuplicated(array)
array: Array<any>
Return: Array
It finds duplicated values in the Array
and returns an Array
of them.
; //=> [1]
"Duplicated" means a value is identical to another value in the ECMAScript same-value equality level.
; //=> []
License
ISC License © 2017 - 2018 Shinnosuke Watanabe