MCPcopy Create free account
hub / github.com/reactjs/react-transition-group / has

Method has

src/utils/SimpleSet.js:8–10  ·  view source on GitHub ↗
(k)

Source from the content-addressed store, hash-verified

6 this.v.length = 0;
7 }
8 has(k) {
9 return this.v.indexOf(k) !== -1;
10 }
11 add(k) {
12 if (this.has(k)) return;
13 this.v.push(k);

Callers 1

addMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected