MCPcopy Create free account
hub / github.com/reactjs/react-modal / decrementReference

Function decrementReference

src/helpers/classList.js:75–80  ·  view source on GitHub ↗
(poll, className)

Source from the content-addressed store, hash-verified

73 * @return {string}
74 */
75const decrementReference = (poll, className) => {
76 if (poll[className]) {
77 poll[className] -= 1;
78 }
79 return className;
80};
81
82/**
83 * Track a class and add to the given class list.

Callers 1

untrackClassFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected