import {partial} from '../internal/value/partial'; import type {PlainObject} from '../models'; // #region Functions /** * Create a new object with only the specified keys * * @param value Original object * @param keys Keys to use * @returns Partial object with only the specified keys */ export function pick( value: Value, keys: ValueKey[], ): Pick { return partial(value, keys, false); } // #endregion