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

Method add

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

Source from the content-addressed store, hash-verified

9 return this.v.indexOf(k) !== -1;
10 }
11 add(k) {
12 if (this.has(k)) return;
13 this.v.push(k);
14 }
15 delete(k) {
16 const idx = this.v.indexOf(k);
17 if (idx === -1) return false;

Callers 3

Transition.jsFile · 0.80
CSSTransition.jsFile · 0.80
TransitionGroup.jsFile · 0.80

Calls 1

hasMethod · 0.95

Tested by

no test coverage detected