hunk.code_window:  * tagNames.subscribe(x => console.log(x));
    * ```
    *
    * @see {@link map}
    *
    * @param {...string} properties The nested properties to pluck from each source
    * value (an object).
    * @return {Observable} A new Observable of property values from the source values.
    * @name pluck
    */
  
hunk.labels: keep keep keep keep keep replace replace replace replace keep
hunk.after_edit:  * @param properties The nested properties to pluck from each source
    * value.
    * @return A new Observable of property values from the source values.
    * @deprecated Remove in v8. Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`.
  
hunk.file_path: src/internal/operators/pluck.ts
hunk.type: replace
file: import { of, Observable } from 'rxjs';
  import { pluck } from 'rxjs/operators';
  
  it('should infer correctly', () => {
    const a = of({ name: 'abc' }).pipe(pluck('name')); // $ExpectType Observable<string>
  });
  
  it('should support nested object of 2 layer depth', () => {
    const a = of({ a: { name: 'abc' } }).pipe(pluck('a', 'name')); // $ExpectType Observable<string>
  });
  
  it('should support nested object of 3 layer depth', () => {
    const a = of({ a: { b: { name: 'abc' } } }).pipe(pluck('a', 'b', 'name')); // $ExpectType Observable<string>
  });
  
  it('should support nested object of 4 layer depth', () => {
    const a = of({ a: { b: { c: { name: 'abc' } } } }).pipe(pluck('a', 'b', 'c', 'name')); // $ExpectType Observable<string>
  });
  
  it('should support nested object of 5 layer depth', () => {
    const a = of({ a: { b: { c: { d: { name: 'abc' } } } } }).pipe(pluck('a', 'b', 'c', 'd', 'name')); // $ExpectType Observable<string>
  });
  
  it('should support nested object of 6 layer depth', () => {
    const a = of({ a: { b: { c: { d: { e: { name: 'abc' } } } } } }).pipe(pluck('a', 'b', 'c', 'd', 'e', 'name')); // $ExpectType Observable<string>
  });
  
  it('should support nested object of more than 6 layer depth', () => {
    const a = of({ a: { b: { c: { d: { e: { f: { name: 'abc' } } } } } } }).pipe(pluck('a', 'b', 'c', 'd', 'e', 'f', 'name')); // $ExpectType Observable<unknown>
  });
  
  it('should accept existing keys only', () => {
    const a = of({ name: 'abc' }).pipe(pluck('xyz')); // $ExpectType Observable<unknown>
  });
  
  it('should not accept empty parameter', () => {
    const a = of({ name: 'abc' }).pipe(pluck()); // $ExpectType Observable<unknown>
  });
  
  it('should accept string only', () => {
    const a = of({ name: 'abc' }).pipe(pluck(1)); // $ExpectError
  });
  
  it('should not infer type from the variable if key doesn\'t exist', () => {
    const a: Observable<number> = of({ name: 'abc' }).pipe(pluck('xyz')); // $ExpectError
  });
  
  it('should accept a spread of arguments', () => {
    const obj = {
      foo: {
        bar: {
          baz: 123
        }
      }
    };
  
    const path = ['foo', 'bar', 'baz'];
    const a = of(obj).pipe(pluck(...path)); // $ExpectType Observable<unknown>
  
    const path2 = ['bar', 'baz'];
    const b = of(obj).pipe(pluck('foo', ...path2)); // $ExpectType Observable<unknown>
  });
  