Can anyone think of a web platform API that accepts a string or array of strings as an argument?

I thought for sure this was a thing, but I'm drawing blanks

EDIT: Answered! https://hachyderm.io/@evilpie/112260613777599323

Tom Schuster (@[email protected])

@[email protected] https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/createIndex

Hachyderm.io
IDBObjectStore: createIndex() method - Web APIs | MDN

The createIndex() method of the IDBObjectStore interface creates and returns a new IDBIndex object in the connected database. It creates a new field/column defining a new data point for each database record to contain.

MDN Web Docs
@evilpie Ohh, keypath! Thanks, now it's time to check the WebIDL for how that's defined
@dotproto does array concat count?

@lamplightdev Nah, that method has a variadic argument. I was looking for cases where the argument is basically a union type

Turns out `createIndex` on IndexedDB does what I was looking for: https://hachyderm.io/@evilpie/112260613777599323

Tom Schuster (@[email protected])

@[email protected] https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/createIndex

Hachyderm.io