Tag the remaining functions
This commit is contained in:
parent
c1fd8c82c6
commit
f8750901f0
3 changed files with 15 additions and 2 deletions
|
|
@ -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]]));
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue