mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
9 lines
288 B
TypeScript
9 lines
288 B
TypeScript
/**
|
|
* Get first scale out of a list of basic scales, aligned to the power. E. g.
|
|
* step(.37, [1, 2, 5]) → .5 step(456, [1, 2]) → 1000
|
|
* Similar to closest, but takes all possible powers of scales.
|
|
*/
|
|
declare function scale(value: number, list: number[]): number;
|
|
|
|
export = scale;
|