MCPcopy
hub / github.com/webpack/webpack / cont

Function cont

test/BinaryMiddleware.unittest.js:11–17  ·  view source on GitHub ↗
(base, count)

Source from the content-addressed store, hash-verified

9 * @returns {import("../lib/serialization/BinaryMiddleware").PrimitiveSerializableType[]} result
10 */
11const cont = (base, count) => {
12 const result = [];
13 for (let i = 0; i < count; i++) {
14 result.push(base[i % base.length]);
15 }
16 return result;
17};
18
19const mw = new BinaryMiddleware();
20/** @type {import("../lib/serialization/SerializerMiddleware").LazyTarget} */

Callers 2

sealMethod · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected