Results for “element”
Small, practical examples. Search by task or narrow things down below.
Return the first item with a generic function
Preserve the element type while allowing empty arrays.
generics✓ Tested
Reverse an array in place
Swap C array elements from opposite ends.
C✓ Tested
Rotate a sequence around a selected position
C++: rotate places the element at the middle iterator first while preserving the two segment orders.
C++✓ Tested
Scope a component’s styles
Scope a component’s styles with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Select siblings up to a boundary
jQuery: nextUntil excludes the boundary element itself.
jQuery✓ Tested
Separate a first item from the remaining items
JavaScript: Array destructuring and a rest element produce named pieces of a sequence.
JavaScript✓ Tested
Separate a first item from the remaining items
TypeScript: Array destructuring and a rest element produce named pieces of a sequence.
TypeScript✓ Tested
Set a control value programmatically
Set a control value programmatically with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Share signal state through an injected service
Share signal state through an injected service with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Share two-way state through a model input
Share two-way state through a model input with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Show a bounded preview and remaining count
Show a bounded preview and remaining count with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Show determinate progress
Represent known completion with an HTML progress element.
HTML✓ Tested