Skip to content
Myr

utilize each()

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

authored by Aaron Heckmann · committed by Aaron Heckmann · parent 8108876 · Browse files · 1 file+4 added−4 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+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:lib/express/plugins/cache.js+4 added-4 removed
150 unmodified lines
151 if (key.indexOf('*') === -1)152 delete this.data[key]153 else {154 var regexp = this.normalize(key)155 for (var key in this.data)156 if (this.data.hasOwnProperty(key))157 if (regexp.test(key))158 delete this.data[key]155 this.data.each(function(_, key){156 if (regexp.test(key))157 delete this.data[key]158 }, this)159 }160 callback()161 },162
71 unmodified lines