1 import { map } from './map';
2 export function pluck(...properties) {
3 const length = properties.length;
5 throw new Error('list of properties cannot be empty.');
7 return (source) => map(plucker(properties, length))(source);
9 function plucker(props, length) {
10 const mapper = (x) => {
12 for (let i = 0; i < length; i++) {
13 const p = currentProp != null ? currentProp[props[i]] : undefined;
25 //# sourceMappingURL=pluck.js.map