site/node_modules/d3-array/src/permute.js
2024-10-14 08:09:33 +02:00

3 lines
97 B
JavaScript

export default function permute(source, keys) {
return Array.from(keys, key => source[key]);
}