MCPcopy Create free account
hub / github.com/ccxt/node-binance-api / isArrayUnique

Method isArrayUnique

src/node-binance-api.ts:3549–3551  ·  view source on GitHub ↗

* Checks whether or not an array contains any duplicate elements * @param {array} array - the array to check * @return {boolean} - true or false

(array: any[])

Source from the content-addressed store, hash-verified

3547 * @return {boolean} - true or false
3548 */
3549 isArrayUnique(array: any[]) {
3550 return new Set(array).size === array.length;
3551 }
3552
3553 // --- PUBLIC FUNCTIONS --- //
3554

Callers 13

futuresAggTradeStreamMethod · 0.95
futuresChartMethod · 0.95
deliveryChartMethod · 0.95
deliveryCandlesticksMethod · 0.95
depthStreamMethod · 0.95
depthCacheStreamMethod · 0.95
aggTradesStreamMethod · 0.95
tradesStreamMethod · 0.95
chartMethod · 0.95
candlesticksStreamMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected