FIND YOUR NEXT FEW LINES

Results for “STRICT”

Small, practical examples. Search by task or narrow things down below.

268 snippets foundClear filters
TypeScriptGetting Started

Read the beginning of a text value

TypeScript: Extract or display the first three ASCII characters from a known nonempty string.

TypeScript✓ Tested
TypeScriptArray traversal & selection

Read the final array item with a negative index

TypeScript: at supports negative positions counted from the end.

TypeScript✓ Tested
TypeScriptGetting Started

Read the first collection element

TypeScript: Access index zero only after establishing that the collection is nonempty.

TypeScript✓ Tested
TypeScriptPromises & iteration protocols

Recover from an expected promise rejection

TypeScript: Return a fallback from catch so later handlers receive an ordinary resolved value.

TypeScript✓ Tested
AngularLifecycle & observable data

Register cleanup through DestroyRef

Register cleanup through DestroyRef with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
AngularLists & control flow

Remove a list item by identifier

Remove a list item by identifier with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
TypeScriptObject behavior & collections

Remove a Map entry and detect whether it existed

TypeScript: Map.delete returns true only when an entry was present.

TypeScript✓ Tested
TypeScriptCollections & records

Remove duplicate values with a Set

Keep the first occurrence order while deduplicating.

Set✓ Tested
AngularGetting Started

Render a child standalone component

Render a child standalone component with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
AngularGetting Started

Render a conditional branch with @if

Render a conditional branch with @if with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
AngularGetting Started

Render a list with @for and stable tracking

Render a list with @for and stable tracking with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
AngularAccessibility & reusable patterns

Render a table with accessible headers

Render a table with accessible headers with a standalone Angular component and explicit browser behavior.

Angular✓ Tested