SPONSORED BY Blacksmith π©βπ
Run GitHub Actions 2x faster at half the cost.
CHALLENGEβ
Run GitHub Actions 2x faster at half the cost.
CHALLENGE
const array = [1, 2, 3, 4];
const result = array.reduceRight((acc, val) => acc - val);
console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
π9β€8π₯4
SPONSORED BY Blacksmith π©βπ
Run GitHub Actions 2x faster at half the cost.
βοΈ JavaScript weekly #698
Run GitHub Actions 2x faster at half the cost.
Please open Telegram to view this post
VIEW IN TELEGRAM
β€5π5π₯2π€2π€£1
SPONSORED BY Blacksmith π©βπ
Run GitHub Actions 2x faster at half the cost.
CHALLENGEβ
Run GitHub Actions 2x faster at half the cost.
CHALLENGE
function test() {
console.log(arguments.length);
}
test(1, 2, 3);
test.call(null, 1, 2, 3);
Please open Telegram to view this post
VIEW IN TELEGRAM
β€6π6π₯2
π14β€6
SPONSORED BY Blacksmith π©βπ
Run GitHub Actions 2x faster at half the cost.
π² Graceful Shutdown in NodeJS
In this article, I will show you how to do a graceful shutdown in a NodeJS application, but first, let's describe what "graceful shutdown" means and why we need to do that in our application and what are the benefits.
nairihar
Run GitHub Actions 2x faster at half the cost.
In this article, I will show you how to do a graceful shutdown in a NodeJS application, but first, let's describe what "graceful shutdown" means and why we need to do that in our application and what are the benefits.
nairihar
Please open Telegram to view this post
VIEW IN TELEGRAM
β€6π₯3π2
SPONSORED BY Blacksmith π©βπ
Run GitHub Actions 2x faster at half the cost.
CHALLENGEβ
Run GitHub Actions 2x faster at half the cost.
CHALLENGE
const obj = { a: 1, b: 2 };
const descriptor = Object.getOwnPropertyDescriptor(obj, 'a');
descriptor.value = 3;
Object.defineProperty(obj, 'a', descriptor);
console.log(obj.a);
Please open Telegram to view this post
VIEW IN TELEGRAM
π6β€4π₯3
π3
SPONSORED BY Blacksmith π©βπ
Run GitHub Actions 2x faster at half the cost.
The newer CSS viewport units (svh, lvh, dvh) are one of my favourite features in modern CSS π₯
β The "smallest viewport height" (svh) will always fit the smallest amount of space (all content will always be visible)
β The "largest viewport height" (lvh) will always take up the largest amount of space (potentially hiding some content underneath UI)
β The "dynamic viewport height" (dvh) will resize to fit the currently available space (adapting as the browser UI gets visible or hidden)
Mads Brodt
Run GitHub Actions 2x faster at half the cost.
The newer CSS viewport units (svh, lvh, dvh) are one of my favourite features in modern CSS π₯
β The "smallest viewport height" (svh) will always fit the smallest amount of space (all content will always be visible)
β The "largest viewport height" (lvh) will always take up the largest amount of space (potentially hiding some content underneath UI)
β The "dynamic viewport height" (dvh) will resize to fit the currently available space (adapting as the browser UI gets visible or hidden)
Mads Brodt
Please open Telegram to view this post
VIEW IN TELEGRAM
π₯16β€7π5
SPONSORED BY Blacksmith π©βπ
Run GitHub Actions 2x faster at half the cost.
CHALLENGEβ
Run GitHub Actions 2x faster at half the cost.
CHALLENGE
const array = [1, 2, 3];
const result = array.map(function(n) {
return this ? n : 0;
}, false);
console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
π6β€4π₯3
β€10π€6π3π₯3π€©3
SPONSORED BY Blacksmith π©βπ
Run GitHub Actions 2x faster at half the cost.
π Ky: Tiny, Elegant Fetch-Based HTTP Client for Browsers
Makes the Fetch API tidier to use as shown here. If you want to tighten up your
Sindre Sorhus
Run GitHub Actions 2x faster at half the cost.
Makes the Fetch API tidier to use as shown here. If you want to tighten up your
fetch
calls, it's worth a look.Sindre Sorhus
Please open Telegram to view this post
VIEW IN TELEGRAM
π7β€4π₯2
SPONSORED BY Blacksmith π©βπ
Run GitHub Actions 2x faster at half the cost.
CHALLENGEβ
Run GitHub Actions 2x faster at half the cost.
CHALLENGE
function* generator() {
yield* [1, 2];
yield* (function* () { yield 3; yield 4; })();
}
const gen = generator();
console.log([...gen]);
Please open Telegram to view this post
VIEW IN TELEGRAM
π₯7π4β€2
π8π€4π€£4β€3
SPONSORED BY Blacksmith π©βπ
Run GitHub Actions 2x faster at half the cost.
π Don't Use JS for That: Moving Features to CSS and HTML by Kilian Valkhof
Packed with code and examples. Some techniques arenβt universally supported yet, but thereβs a lot that the browser can offer that you donβt need to reimplement yourself, like color picking, modals, and animations.
Kilian Valkhof
Run GitHub Actions 2x faster at half the cost.
Packed with code and examples. Some techniques arenβt universally supported yet, but thereβs a lot that the browser can offer that you donβt need to reimplement yourself, like color picking, modals, and animations.
Kilian Valkhof
Please open Telegram to view this post
VIEW IN TELEGRAM
π7β€2π₯2
SPONSORED BY Blacksmith π©βπ
Run GitHub Actions 2x faster at half the cost.
CHALLENGEβ
Run GitHub Actions 2x faster at half the cost.
CHALLENGE
const obj = {
a: 1,
b() {
return this.a + 1;
}
};
const { b } = obj;
console.log(b());
Please open Telegram to view this post
VIEW IN TELEGRAM
π1
π€23π9π₯5β€3
SPONSORED BY Blacksmith π©βπ
Run GitHub Actions 2x faster at half the cost.
β So You Think You Know Box Shadows?
The author indulges his creative side with some fun experiments into what he calls βsome of the worst possible thingsβ you can do with box shadows on a DIV element, coupled with JavaScript.
David Gerrells
Run GitHub Actions 2x faster at half the cost.
The author indulges his creative side with some fun experiments into what he calls βsome of the worst possible thingsβ you can do with box shadows on a DIV element, coupled with JavaScript.
David Gerrells
Please open Telegram to view this post
VIEW IN TELEGRAM
π₯3β€2π2
SPONSORED BY Blacksmith π©βπ
Run GitHub Actions 2x faster at half the cost.
CHALLENGEβ
Run GitHub Actions 2x faster at half the cost.
CHALLENGE
const obj = { a: 1, b: 2 };
Object.defineProperty(obj, 'b', { value: 3, writable: false });
obj.b = 4;
console.log(obj.b);
Please open Telegram to view this post
VIEW IN TELEGRAM
π5π₯2π€1
π€£14β€7π6π₯2π€2
SPONSORED BY Blacksmith π©βπ
Run GitHub Actions 2x faster at half the cost.
βΌοΈ Astro 4.12: Say Hello to Server Islands
The flexible Astro framework for building modern content-based sites continues to go from strength to strength. v4.12 includes a new concept of server islands, a way to integrate static HTML and server-side generated components together.
Erika and Phillips (Astro)
Run GitHub Actions 2x faster at half the cost.
The flexible Astro framework for building modern content-based sites continues to go from strength to strength. v4.12 includes a new concept of server islands, a way to integrate static HTML and server-side generated components together.
Erika and Phillips (Astro)
Please open Telegram to view this post
VIEW IN TELEGRAM
π4π₯3β€2