Tag the remaining functions

This commit is contained in:
Václav Volhejn 2026-01-18 12:16:50 +01:00
parent c1fd8c82c6
commit f8750901f0
3 changed files with 15 additions and 2 deletions

View file

@ -110,7 +110,9 @@ export function getCommonSampleInfo(hapValue, bank) {
return { transpose, url, index, midi, label };
}
/** Selects entries from `source` and renames them via `map` */
/** Selects entries from `source` and renames them via `map`
* @tags internals
*/
export const pickAndRename = (source, map) => {
return Object.fromEntries(Object.entries(map).map(([newKey, oldKey]) => [newKey, source[oldKey]]));
};