CloneSet709


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6210.993IfStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1687
Closure/closure/goog/array/array.js
26129
Closure/closure/goog/array/array.js
Clone Instance
1
Line Count
6
Source Line
87
Source File
Closure/closure/goog/array/array.js

      if (goog.isString(arr)) {
        // Array.prototype.indexOf uses === so only strings should be found.
        if (!goog.isString(obj)
            ||                     obj.length!=  1) {
          return -1;
                                                    }
        return arr.indexOf(obj, fromIndex);
                              }


Clone Instance
2
Line Count
6
Source Line
129
Source File
Closure/closure/goog/array/array.js

      if (goog.isString(arr)) {
        // Array.prototype.lastIndexOf uses === so only strings should be found.
        if (!goog.isString(obj)
            ||                     obj.length!=  1) {
          return -1;
                                                    }
        return arr.lastIndexOf(obj, fromIndex);
                              }


Clone AbstractionParameter Count: 1Parameter Bindings

if (goog.isString(arr))
  {
    // Array.prototype.indexOf uses === so only strings should be found.
    // Array.prototype.lastIndexOf uses === so only strings should be found.
    if (!goog.isString(obj)
        || obj.length!=1)
      { return -1;
      }
    return arr. [[#variable1eee3bc0]](obj,fromIndex);
  }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1eee3bc0]]
indexOf 
12[[#1eee3bc0]]
lastIndexOf