3 lines
97 B
JavaScript
3 lines
97 B
JavaScript
export default function permute(source, keys) {
|
|
return Array.from(keys, key => source[key]);
|
|
}
|