a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky

chore(cbor): fix linter warning

mary.my.id 9a18e533 9cd053c2

verified
+1 -1
+1 -1
packages/utilities/cbor/lib/firehose.bench.ts
··· 189 189 190 190 const stripUndefined = (value: unknown): unknown => { 191 191 if (Array.isArray(value)) { 192 - const out = new Array(value.length); 192 + const out = Array.from({ length: value.length }); 193 193 for (let i = 0; i < value.length; i++) { 194 194 out[i] = stripUndefined(value[i]); 195 195 }