Secret gists don't show up in Discover and are not searchable. Secret gists aren't private. If you send the URL of a secret gist to a friend , they'll be able to see it. However, if someone you don't know discovers the URL, they'll also be able to see your gist. If you need to keep your code away from prying eyes, you may want to create a private repository instead.
И почему всё выводится без задержки?
((i) => { return console.log( i ); })(i)
самовызывающаяся функция, которая выполняется сразу. сделайте вместо нее ()=>{ return console.log( i ); }
for (let i=1; i<=5; i++) {
setTimeout( () => {
return console.log( i );
}, 1000 );
}
const onKeyUp = (e: KeyboardEvent) => {
if (e.keyCode === 13) {
e.target!.blur();
}
};
expect.extend({
toBeInList(received, ...values) {
const pass = values.includes(received),
message = `expected ${received}${ pass ? '' : ' not'} equals ${values.join(" or ")}`
return {
message: () => message,
pass
}
});
expect(result.aaa).toBeInList(a, b);