Posts Tagged 'new-toys'

2020-07-25 17:45 UTC

New: Relative Indexing Method for Indexables

Posted 2020-07-25 17:45 UTC in javascript new-toys indexable string array typed-array

The Stage 3 relative indexing method proposal adds an at method to strings, arrays, and typed arrays (collectively, "indexables"). Let's take a look! The Basics In its most basic form, the at method accepts an index and gives you the item at that…

2020-07-21 15:05 UTC

New: Logical Assignment Operators

Posted 2020-07-21 15:05 UTC in javascript new-toys

Since I finished the book, a new proposal has reached Stage 3 4 (as of the July 2020 meeting): Logical Assignment Operators. It adds three new compound assignment operators to the language: ||=, &&=, and ??=. At first glance it seems like these would…