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
import { wrapInDisablerProxyFactory } from "./wrapInDebugModeProxy" | |
describe("Enable/disable functions", () => { | |
const obj = { | |
flipTheFlag(target) { | |
target.flag = true | |
}, | |
inner: { | |
anotherFlipTheFlag(target) { |
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
function Deferred() { | |
this.resolve = null; | |
this.reject = null; | |
this.promise = new Promise((resolve, reject) => { | |
this.resolve = resolve; | |
this.reject = reject; | |
}); | |
} |
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
function round(value, precision) { | |
return Number(Math.round(value + "e" + precision) + "e-" + precision) | |
} | |
function strictCompare(left, right) { | |
console.log(`strictCompare(${left}, ${right})`); | |
return left === right; | |
} |
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 abstract record StronglyTypedId<TValue>(TValue Value) | |
where TValue : notnull | |
{ | |
public override sealed string ToString() => $"{Value}"; | |
} |
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 { | |
chain, | |
filter, | |
count, | |
groupBy, | |
map | |
} = require("./chaining") | |
const transforms = [ |
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
alias la="ls -a" | |
mkcd() { | |
mkdir $1 && cd $1 | |
} |
OlderNewer