MCPcopy Create free account
hub / github.com/neetcode-gh/leetcode / back

Method back

javascript/1472-design-browser-history.js:21–24  ·  view source on GitHub ↗

* @param {number} steps * @return {string}

(steps)

Source from the content-addressed store, hash-verified

19 * @return {string}
20 */
21 back(steps) {
22 this.current = Math.max(this.current - steps, 0);
23 return this.history[this.current];
24 }
25
26 /**
27 * @param {number} steps

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected