MCPcopy Create free account
hub / github.com/devin87/Q.js / parseLevel

Function parseLevel

node/Q.js:1467–1487  ·  view source on GitHub ↗

* 按照进制解析数字的层级 eg:时间转化 -> parseLevel(86400,[60,60,24]) => { value=1, level=3 } * @param {number} size 要解析的数字 * @param {number|Array. } steps 步进,可以是固定的数字(eg:1024),也可以是具有层次关系的数组(eg:[60,60,24]) * @param {number} limit 限制解析的层级,正整数,默认为100

(size, steps, limit)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

formatSizeFunction · 0.70

Calls 1

isUIntFunction · 0.70

Tested by

no test coverage detected