UNPKG

ibm-cloud-sdk-core

Version:

Core functionality to support SDKs generated with IBM's OpenAPI SDK Generator.

56 lines (27 loc) 819 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) &gt; [atMostOne](./ibm-cloud-sdk-core.atmostone.md) ## atMostOne() function Verifies that no more than one of the given elements are defined. Returns true if one or none are defined, and false otherwise. **Signature:** ```typescript export declare function atMostOne(...args: any): boolean; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> args </td><td> any </td><td> The spread of arguments to check </td></tr> </tbody></table> **Returns:** boolean false if more than one elements are defined, true otherwise