2323var setReadOnly = require ( '@stdlib/utils/define-nonenumerable-read-only-property' ) ;
2424var isFunction = require ( '@stdlib/assert/is-function' ) ;
2525var isIteratorLike = require ( '@stdlib/assert/is-iterator-like' ) ;
26- var hasOwnProp = require ( '@stdlib/assert/has-own-property' ) ;
2726var iteratorSymbol = require ( '@stdlib/symbol/iterator' ) ;
2827var LinkedList = require ( '@stdlib/utils/linked-list' ) ;
2928
@@ -94,16 +93,6 @@ function intersection( iterators, hashFcn, thisArg ) {
9493 while ( true ) {
9594 v = it . next ( ) ;
9695 if ( v . done ) {
97- if ( hasOwnProp ( v , 'value' ) ) {
98- hv = hashFcn . call ( thisArg , v . value ) ;
99-
100- // Determine if we have seen this hash before...
101- n = getNode ( hash , hv ) ;
102- if ( n === null ) {
103- // First time we have seen this hash, so add to our set of hashes:
104- hash . push ( [ hv , v . value , 1 ] ) ;
105- }
106- }
10796 break ;
10897 }
10998 hv = hashFcn . call ( thisArg , v . value ) ;
@@ -125,14 +114,6 @@ function intersection( iterators, hashFcn, thisArg ) {
125114 while ( true ) {
126115 v = it . next ( ) ;
127116 if ( v . done ) {
128- if ( hasOwnProp ( v , 'value' ) ) {
129- hv = hashFcn . call ( thisArg , v . value ) ;
130- n = getNode ( hash , hv ) ;
131- if ( n && n . value [ 2 ] === j ) {
132- // Only increment a hash's counter the first time we see the hash per iterator...
133- n . value [ 2 ] += 1 ;
134- }
135- }
136117 break ;
137118 }
138119 hv = hashFcn . call ( thisArg , v . value ) ;
0 commit comments