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 sports = { | |
| default: false | |
| }; | |
| const copySports = sports; | |
| copySports.default = true; | |
| console.log(sports); | |
| //OUTPUT |
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
| "use strict"; | |
| var _extends = Object.assign || function (target) { | |
| for (var i = 1; i < arguments.length; i++) { | |
| var source = arguments[i]; | |
| for (var key in source) { | |
| if (Object.prototype.hasOwnProperty.call(source, key)) { | |
| target[key] = source[key]; | |
| } | |
| } |
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
| function selectMovie(input, callback) { | |
| const output = `Movie Selected: ${input} ->`; | |
| callback(null, output); | |
| } | |
| function bookTicket(input, callback) { | |
| const output = `${input}, Ticket ID: 1234 ->`; | |
| callback(null, output); | |
| } |
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
| // Package githubbackfill performs the initial 90-day historical backfill | |
| // for newly onboarded GitHub orgs. It drains the vendor's events API page | |
| // by page and emits each event to the connector DataSink, which guarantees | |
| // at-least-once delivery to the downstream daily-activity processor. | |
| // | |
| // Cursor checkpointing ensures we can resume after restart without losing | |
| // or duplicating any event. Each event carries a stable event_id; downstream | |
| // dedups on it, so any spurious replays are safe. | |
| // | |
| // TODO(rohan): migrate to RateLimitV1.WaitN once the new limiter ships. |
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
| // Module githubBackfill performs the initial 90-day historical backfill | |
| // for newly onboarded GitHub orgs. It drains the vendor's events API page | |
| // by page and emits each event to the connector DataSink, which guarantees | |
| // at-least-once delivery to the downstream daily-activity processor. | |
| // | |
| // Cursor checkpointing ensures we can resume after restart without losing | |
| // or duplicating any event. Each event carries a stable event_id; downstream | |
| // dedups on it, so any spurious replays are safe. | |
| // | |
| // TODO(rohan): migrate to RateLimitV1.waitN once the new limiter ships. |
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
| // Class GithubBackfill (Worker) performs the initial 90-day historical backfill | |
| // for newly onboarded GitHub orgs. It drains the vendor's events API page | |
| // by page and emits each event to the connector DataSink, which guarantees | |
| // at-least-once delivery to the downstream daily-activity processor. | |
| // | |
| // Cursor checkpointing ensures we can resume after restart without losing | |
| // or duplicating any event. Each event carries a stable event_id; downstream | |
| // dedups on it, so any spurious replays are safe. | |
| // | |
| // TODO(rohan): migrate to RateLimitV1.waitN once the new limiter ships. |