Skip to content

Instantly share code, notes, and snippets.

View kockono's full-sized avatar
🐷
Chilling

Chris Cobos kockono

🐷
Chilling
View GitHub Profile
const subscription: Subscription = interval(1000).subscribe((num: number) => {
console.log(num);
});
// Cancelar la suscripción después de 5 segundos
setTimeout(() => {
subscription.unsubscribe();
console.log('Suscripción cancelada');
}, 5000);
@kockono
kockono / Js
Last active June 19, 2023 03:52
Snippets
"Print to console": {
"prefix": "cl",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
},
"Observer": {
"prefix": "$obs",
.charAt(0)