Skip to content
Client
Server

Reference / @open-music-sdk/core / isName

Function: isName() ​

ts
function isName(value): value is string;

Defined in: packages/core/src/check.ts:91

Whether value is a name: a string of 1 to 64 characters, which is what an id, a type or a code may be wherever it is sent.

Parameters ​

value ​

unknown

What to look at.

Returns ​

value is string

Whether value is a string of 1 to 64 characters.

MIT licensed. Not affiliated with, endorsed by, or sponsored by Apple Inc. Apple Music and MusicKit are trademarks of Apple Inc.