Skip to content
Myr

refactor(context): use simple for-of syntax (#3598)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Taku Amano · committed by GitHub · parent ae99d86 · Browse files · 1 file+1 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:src/context.ts+1 added-2 removed
264 unmodified lines
265 * @param map - A record of header key-value pairs to set.266 * @returns The updated Headers object.267 */268const setHeaders = (headers: Headers, map: Record<string, string> = {}) => {269 for (let i = 0, keys = Object.keys(map), len = keys.length; i < len; i++) {270 const key = keys[i]269 for (const key of Object.keys(map)) {270 headers.set(key, map[key])271 }272 return headers273}
573 unmodified lines