Scenario generator for vore roleplay and story ideas. https://scenario-generator.deliciousreya.net/responses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
519 B

export function takeLast(a: string, b: string): string {
return b
}
export function getQuerySingleton(value: string|string[]|undefined, reducer: (a: string, b: string) => string): string|null {
if (typeof value === 'undefined' || typeof value === 'string') {
return value ?? null
}
return value.reduce(reducer)
}
export function getQueryArray(value: string|string[]|undefined): string[] {
if (typeof value === 'undefined') {
return []
}
if (typeof value === 'string') {
return [value]
}
return value
}