FIND YOUR NEXT FEW LINES

Results for “check”

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

547 snippets foundClear filters
ReactAccessibility & events

Announce a status update politely

Announce a status update politely with a small React component and explicit browser behavior.

React✓ Tested
AngularAccessibility & reusable patterns

Announce a status update with a live region

Announce a status update with a live region with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
AngularReactive forms

Append a dynamic form control

Append a dynamic form control with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
jQueryGetting Started

Append a safely constructed list item

jQuery: Learn how to append a safely constructed list item in a complete browser example.

jQuery✓ Tested
CStrings & byte buffers

Append text only when the destination has enough capacity

C: Check the combined lengths including the terminator before using strcat.

C✓ Tested
AngularSignals & state

Append to an array signal immutably

Append to an array signal immutably with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
ReactGetting Started

Append to an array without mutating state

Append to an array without mutating state with a small React component and explicit browser behavior.

React✓ Tested
C++Ownership & optional values

Apply an operation to a variant’s active value

C++: A generic visitor lets the compiler check behavior for every possible alternative.

C++✓ Tested
jQueryCollections & styling

Apply classes from explicit Boolean state

jQuery: The second toggleClass argument applies a known state consistently.

jQuery✓ Tested
ReactGetting Started

Assign a CSS class in JSX

Assign a CSS class in JSX with a small React component and explicit browser behavior.

React✓ Tested
AngularAccessibility & reusable patterns

Associate a validation message with a field

Associate a validation message with a field with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
jQueryHTTP requests

Attach an application-specific request header

jQuery: The headers option adds a header to this request only.

jQuery✓ Tested