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
| /* | |
| * File: bst.js | |
| * | |
| * A pure JavaScript implementation of a binary search tree. | |
| * | |
| */ | |
| /* | |
| * Class: BST | |
| * |
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
| var x = "!"; | |
| var outer = () => { | |
| var a = "there"; | |
| var inner = () => console.log("Hey " + a + x); | |
| return inner(); | |
| } | |
| outer(); // --> "Hey there!" |
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
| var x = "!"; | |
| var outer = () => { | |
| var a = "there"; | |
| // inner() has CLOSURE over outer() | |
| var inner = () => console.log("Hey " + a + x); | |
| return inner; | |
| } |
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
| var x = "!"; | |
| var outer = () => { | |
| var a = "there"; | |
| var inner = () => console.log("Hey " + a + x); | |
| return inner; | |
| } | |
| var anotherOuter = outer(); |
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
| const abductionAlert = (city) => { | |
| const title = "Greetings Earthlings! The Current Alien Abduction Count in " | |
| + `${city}` + " Is: "; | |
| let count = 0; | |
| const alertFactory = () => { | |
| alert(`${title} ${++count}`); | |
| } | |
| return alertFactory; |
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
| --- | |
| format_version: '8' | |
| default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git | |
| project_type: react-native | |
| trigger_map: | |
| - push_branch: master | |
| workflow: staging | |
| workflows: | |
| setup: | |
| steps: |
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
| "husky": { | |
| "hooks": { | |
| "pre-push": "./native-dep-check.sh && npm run lint" | |
| } | |
| } |
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
| --- | |
| format_version: '8' | |
| default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git | |
| project_type: react-native | |
| trigger_map: | |
| - push_branch: master | |
| workflow: production | |
| - push_branch: staging | |
| workflow: staging | |
| - push_branch: "*" |
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
| --- | |
| format_version: '8' | |
| default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git | |
| project_type: react-native | |
| trigger_map: | |
| - push_branch: master | |
| workflow: production | |
| - push_branch: staging | |
| workflow: staging | |
| - push_branch: "*" |
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
| --- | |
| format_version: '8' | |
| default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git | |
| project_type: react-native | |
| trigger_map: | |
| - push_branch: master | |
| workflow: production | |
| - push_branch: staging | |
| workflow: staging | |
| - push_branch: "*" |
OlderNewer