Joshua T Kalis

Results 18 comments of Joshua T Kalis

No, defaults isn't in the global scope. It is in the function/closure scope where the plugin is the only code that can access it. This way that value isn't re-evaluated...

Not a bad idea, but remember to do file I/O before starting the helper counter. We don't want that to be a part of the solution time.

I thought about adding a single file with all the answers - because the answers are the same no matter the language - but decided against it because I didn't...

I don't know if you wanted these but I wanted to tinker with the code and I prefer to have unit tests before doing so.

No worries or pressure. I wanted some tests for myself because I wanted to hack on your solution but wanted to be sure that I wasn't missing any functionality. No...

| Filename | Size | Change | | |:--- |:---:|:---:|:---:| | `dist/unfetch.es.js` | 553 B | +47 B (8%) | 🔍 | | `dist/unfetch.js` | 548 B | +43 B...

This is done now. > @kalisjoshua that'll be the added export. One quick solution to check this would be to move the `response` function into a separate file (`src/lib/response.mjs`) that...

| Filename | Size | Change | | |:--- |:---:|:---:|:---:| | `dist/unfetch.es.js` | 544 B | +38 B (6%) | 🔍 | | `dist/unfetch.js` | 543 B | +38 B...

It's interesting to look at the compiled output diff of `dist/unfetch.js` between the master branch and my branch. On the master branch the `for` loop is expanded a little but...