AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
This podcast episode discusses six new JavaScript APIs that have been approved or proposed. These APIs cover various functionalities, such as Promise.withResolvers, array and string.at, immutable array methods, array grouping, observable events, and import attributes.
Promise.withResolvers is an API that allows you to return a promise along with resolve and reject methods. This enables you to control how and when a promise is resolved or rejected, providing a more flexible and portable approach compared to traditional promise callbacks.
The array and string.at API allows you to access specific positions in an array or string using both positive and negative indices. This simplifies accessing elements from the end of an array or string and makes working with arrays and strings more intuitive.
The proposed immutable array methods, such as reversed, sorted, spliced, and width, provide a way to perform operations on arrays without modifying the original array. These methods offer a cleaner and more functional approach to working with arrays, reducing the need for manual array copying or modification.
The array grouping API makes it easier to group items in an array or iterable based on certain criteria. By specifying a key for grouping, this API allows you to categorize and organize data in a more structured and convenient way.
Observable events is an API that enhances event handling by turning it into observables. This allows you to subscribe to event streams, apply filtering or mapping, and easily handle asynchronous events in a more explicit and declarative manner.
Import attributes is a proposal that aims to extend the import statement in JavaScript to support importing different types of data, such as JSON, from URLs. This feature enhances the flexibility and convenience of importing specific data formats, enabling more seamless integration within JavaScript applications.
Decorators are a stage three proposal that introduces a more structured and declarative way of working with custom behaviors and modifications in JavaScript. This feature allows you to enhance class and method definitions with additional functionality by applying decorators, making code more readable and maintainable.
Pattern matching is a proposed feature that enhances error handling and object matching by providing a concise and powerful syntax for matching against specific patterns or conditions. This feature aims to improve code readability and reduce boilerplate when working with complex matching logic.
The in-place method is a proposed API that provides a more concise and streamlined way to insert or update items in a map. With this method, you can specify an insert function and an update function to handle different scenarios, making map manipulation more efficient and readable.
Bright LED lights for bikes that offer enhanced visibility and safety while cycling. These lights are highly visible and have different flashing patterns, making them suitable for night rides or low-light conditions.
Artifact is an AI-based news aggregator app that learns your reading habits and curates personalized news content based on your interests. It offers a convenient and efficient way to stay updated with relevant news topics.
The podcast's social media channels, including Instagram and TikTok, where bite-sized clips and snippets from episodes are shared alongside web development-related content. Follow these channels for quick and engaging web development content.
Artifact is an app that serves as an alternative to Reddit, providing an AI-based news aggregation platform that tailors content based on users' interests. It offers a more personalized and refined browsing experience compared to traditional social media platforms.
LED lights designed specifically for cyclists, providing enhanced visibility and safety on the road. These lights are bright and feature different flashing patterns to alert motorists of the cyclist's presence.
A proposal for adding pattern matching capabilities to TypeScript, allowing for the declarative handling of different error types in a more concise and readable manner. This feature aims to enhance error handling and reduce the need for complex conditional checks.
An observation about right-hand drive mail trucks used for mail delivery in rural areas, which allows mail carriers to conveniently access mailboxes without exiting the vehicle. This feature adds efficiency and convenience to the mail delivery process.
The import assertions proposal aims to expand the capabilities of ES modules by allowing the import of different data types, such as JSON, directly into JavaScript code. This feature improves module interoperability and simplifies data handling within modules.
Discussion about recent changes in the Reddit API, which has limited the access and functionality of third-party apps and developers. This change has prompted users to seek alternative platforms and applications for news and content aggregation.
In this episode of Syntax, Wes and Scott talk about new approved and proposed JavaScript API changes including Promise.withResolvers, .at(), Immutable Array Methods, Array.fromAsync, and more.
Show NotesListen to all your favourite podcasts with AI-powered features
Listen to the best highlights from the podcasts you love and dive into the full episode
Hear something you like? Tap your headphones to save it with AI-generated key takeaways
Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more
Listen to all your favourite podcasts with AI-powered features
Listen to the best highlights from the podcasts you love and dive into the full episode