cleanup, docs
This commit is contained in:
@@ -13,7 +13,6 @@ Returns the first non-empty string from the provided arguments.
|
||||
|
||||
Leading and trailing whitespace are ignored when checking emptiness, so a string containing only whitespace counts as empty.
|
||||
|
||||
## Related Concepts
|
||||
|
||||
- PHP: null-coalescing patterns like `$a ?? $b`, fallback helpers, or `reset()` for arrays
|
||||
- JavaScript / Node.js: `??`, `||`, and small fallback helper functions
|
||||
:example
|
||||
print(first("", "fallback", "other"), "\n");
|
||||
|
||||
Reference in New Issue
Block a user