mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-27 19:22:47 +00:00
* Add types for compute-argmax * Update types/compute-argmax/index.d.ts Co-Authored-By: Dmitry Demensky <10235949+demensky@users.noreply.github.com>
5 lines
112 B
TypeScript
5 lines
112 B
TypeScript
import compute = require('compute-argmax');
|
|
|
|
const data = [3, 2, 5, 2, 5];
|
|
const idx: number[] = compute(data);
|