#Arrays
5 notas · última:
11 Powerful JavaScript One-Liners Worth Knowing
A set of 11 JavaScript one-liners for counting characters, checking empty objects, waiting, comparing dates, redirecting, handling touch support, DOM insertion, shuffling arrays, reading selected text, random booleans, and averaging arrays.
The Array Methods Coming to JavaScript in 2022
The article explains a Stage 3 proposal that adds non-destructive array methods to JavaScript so code can copy an array and then reverse, sort, splice, or replace one item without mutating the original.
Merge Sort
The page explains merge sort as a divide-and-conquer method that splits an array into smaller subarrays until size 0 or 1, then rebuilds a sorted array by merging.
10 Practical JavaScript Tricks
The post collects small JavaScript shortcuts for arrays, conditionals, swapping values, dynamic properties, and unique filtering, while warning that code still needs to work across browsers.
Algumas Dicas da Linguagem Ruby
A página reúne truques de Ruby para troca de variáveis, interpolação de strings, condicionais que retornam valor, ranges, hashes, splat, joins e conversão entre bases.
