This file contains 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
type Tree = Record<string, number | Tree>; | |
const getUniqueSortedNumbers = (tree: Tree) => { | |
const flattenSet = new Set(); | |
const flattenTreeReq = (tree: Tree) => { | |
for (let node in tree) { | |
const value = tree[node]; | |
if (typeof value === "number") { |
This file contains 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 oldLog = console.log; | |
console.log = (...params) => { | |
const msg = params.map(param => `${param} "${typeof param}"`) | |
.join(" "); | |
oldLog(msg); | |
}; |
This file contains 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
public class KeyVaultHelper | |
{ | |
private readonly IConfiguration _configuration; | |
public KeyVaultHelper(IConfiguration configuration) | |
{ | |
_configuration = configuration; | |
} | |
public async Task<string> GetDatabaseConnectionString() |