* Check whether a record with the given ID exists in the store. * * @example * ```ts * if (store.has(bookId)) { * console.log('Book exists!') * } * ``` * * @param id - The ID of the record to check * @returns True if the record exists, false otherwise * @public
(id: K)
| 962 | * @public |
| 963 | */ |
| 964 | has<K extends IdOf<R>>(id: K): boolean { |
| 965 | return this.records.has(id) |
| 966 | } |
| 967 | |
| 968 | /** |
| 969 | * Add a listener that will be called when the store changes. |
no outgoing calls