diff options
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/music/index.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/modules/music/index.ts b/src/modules/music/index.ts index a34a4bb8..ba051524 100644 --- a/src/modules/music/index.ts +++ b/src/modules/music/index.ts @@ -23,4 +23,16 @@ export class Music { genre(): string { return this.faker.helpers.arrayElement(this.faker.definitions.music.genre); } + + /** + * Returns a random song name. + * + * @example + * faker.music.songName() // 'White Christmas' + */ + songName(): string { + return this.faker.helpers.arrayElement( + this.faker.definitions.music.song_name + ); + } } |
