dist/modules/object.js
function pick(obj, props) {
    props = to_1.toArray(props, []);
    if (!is_1.isValue(obj) || !is_1.isObject(obj) || !props || !props.length)
        return obj;
    return props.reduce(function (a, c) {
        var val = get(obj, c, undefined);
        if (is_1.isUndefined(val))
            return a;
        return set(a, c, val);
    }, {});
}
function pick(obj, props) {
    props = to_1.toArray(props, []);
    if (!is_1.isValue(obj) || !is_1.isObject(obj) || !props || !props.length)
        return obj;
    return props.reduce(function (a, c) {
        var val = get(obj, c, undefined);
        if (is_1.isUndefined(val))
            return a;
        return set(a, c, val);
    }, {});
}
function pick ( obj , props ) { props = to_1 . toArray ( props , [ ] ) ; if ( ! is_1 . isValue ( obj ) || ! is_1 . isObject ( obj ) || ! props || ! props . length ) return obj ; return props . reduce ( function ( a , c ) { var val = get ( obj , c , undefined ) ; if ( is_1 . isUndefined ( val ) ) return a ; return set ( a , c , val ) ; } , { } ) ; }
Picks values from object by property name.

@param obj the object to pick from.
@param props the properties to be picked.
Picks values from object by property name .