* Retrieves a record from the data source by its ID. * * @param {string | number} id - The ID of the record to retrieve. * @returns {DataRecord | undefined} The data record, or `undefined` if no record is found with the given ID. * @name getRecord
(id: string | number)
| 171 | * @name getRecord |
| 172 | */ |
| 173 | getRecord(id: string | number): DataRecord | undefined { |
| 174 | return this.records.get(id); |
| 175 | } |
| 176 | |
| 177 | /** |
| 178 | * Retrieves all records from the data source. |
no test coverage detected