spiegel-keyman/web/docs/engine/reference/util/toNzString.md
Marc Durdin 1f82507730 docs(web): deprecate unused and obsolete API endpoints and docs cleanup
Deprecate the following obsolete functions and properties:
* `keyman.helpURL`
* `keyman.util.rgba`
* `keyman.util.toFloat`
* `keyman.util.toNumber`
* `keyman.util.toNzString`

Use correct language for code blocks in Keyman Engine for Web
documentation.

Test-bot: skip
2026-08-12 16:07:22 +02:00

38 lines
652 B
Markdown

---
title: toNzString (deprecated)
---
## Summary
Returns string value for the item, or the default string value if the argument
is null, false, an empty string, or undefined.
## Syntax
```js
keyman.util.toNzString(item, dflt);
```
### Parameters
`item`
: Type: `*`
: Variable to convert.
`dflt`
: Type: `*` *optional*
: Value to use of the converted variable is null, false, the empty string, or
undefined.
### Return Value
`string`
: The string equivalent value for the item being converted.
## Description
This function has been deprecated and will be removed in a future version of KeymanWeb.
## History
19.0: deprecated