MCPcopy Create free account
hub / github.com/ccxt/ccxt / testInArray

Function testInArray

ts/src/test/base/test.inArray.ts:7–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5import ccxt from '../../../ccxt.js';
6
7function testInArray () {
8
9 const exchange = new ccxt.Exchange ({
10 'id': 'regirock',
11 });
12
13 const array = [ 1, 2, 3 ];
14
15 assert (exchange.inArray (1, array) === true);
16 assert (exchange.inArray (2, array) === true);
17 assert (exchange.inArray (3, array) === true);
18 assert (exchange.inArray (4, array) === false);
19}
20
21export default testInArray;

Callers 1

baseTestsInitFunction · 0.70

Calls 2

inArrayMethod · 0.95
assertFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…