|
Description |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * __proto__ and prototype | |
| * - the __proto__ property the instance's 'parent' up the prototype chain | |
| * - the prototype property refers what new instances of the type will have their __proto__ set to, i.e. what will be the new instance's 'parent' up the prototype chain | |
| */ | |
| /* Given */ | |
| function Object () {} | |
| Object.prototype = { | |
| __proto__: null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Create empty branch. git switch --orphan <branch name> deletes ALL files from the working tree. We don't want that. | |
| git checkout --orphan review | |
| # or delete only the required files that you need to review. For example, for nats project only delete go source files. | |
| # find . -type f -name '*.go' -not -name '*test.go' -not -path '*/vendor/*' -delete | |
| git rm -rf . | |
| git commit --allow-empty -m "Create empty branch" | |
| git push --set-upstream origin review | |
| # Create `project` branch from `main` current state. | |
| git switch -c project |