hunk.code_window:       return this;
       }
       const newMap = this._map.__ensureOwner(ownerID);
       if (!ownerID) {
         if (this.size === 0) {
           return emptySet();
         }
         this.__ownerID = ownerID;
         this._map = newMap;
         return this;
       }
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep keep
hunk.after_edit:         return this.__empty();
  
hunk.file_path: src/Set.js
hunk.type: replace
file: /**
   * Copyright (c) 2014-present, Facebook, Inc.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */
  
  import { isOrdered } from '../Predicates';
  import isArrayLike from './isArrayLike';
  
  export default function coerceKeyPath(keyPath) {
    if (isArrayLike(keyPath) && typeof keyPath !== 'string') {
      return keyPath;
    }
    if (isOrdered(keyPath)) {
      return keyPath.toArray();
    }
    throw new TypeError(
      'Invalid keyPath: expected Ordered Collection or Array: ' + keyPath
    );
  }
  