1 /** PURE_IMPORTS_START _map PURE_IMPORTS_END */
2 import { map } from './map';
3 export function pluck() {
5 for (var _i = 0; _i < arguments.length; _i++) {
6 properties[_i] = arguments[_i];
8 var length = properties.length;
10 throw new Error('list of properties cannot be empty.');
12 return function (source) { return map(plucker(properties, length))(source); };
14 function plucker(props, length) {
15 var mapper = function (x) {
17 for (var i = 0; i < length; i++) {
18 var p = currentProp != null ? currentProp[props[i]] : undefined;
30 //# sourceMappingURL=pluck.js.map