MCPcopy Create free account
hub / github.com/careercup/CtCI-6th-Edition-JavaScript / Folder

Function Folder

chapter07/7.11 - File System/fileSystem.js:1–5  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

1var Folder = function(name) {
2 this.type = 'folder';
3 this.name = name;
4 this.filesAndFolders = [];
5};
6
7Folder.prototype.findFolder = function(name) {
8 if (this.name === name) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected