What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-11-14 03:20:14
timeout typescript
setTimeout(() => { console.log('hi'); }, 500); Add solution -
Other 2021-11-12 01:16:08
async function in variable
function resolveAfter2Seconds(x) { return new Promise(resolve => { setTimeout(() => { resolve(x); }, 2000); }); }; (async function(x) { // fonction asynchrone immédiatement appelée var a = resolveAfter2Seconds(20);... Add solution -
TypeScript 2021-11-10 23:59:13
how to trigger ngmodelchange after typing is finished
import { Component } from '@angular/core'; import { NgZone } from '@angular/core'; @Component({ selector: 'my-app', template: ` <h4>Type something in below text box</h4> <input (ngModelChange)="displayName()" [(ngModel)... Add solution -
Javascript 2021-11-10 19:12:16
swear word javascript + cooldown + delete mesagge discord.js
bot.on("message", async(message) => { if(message.member.hasPermission(['ADMINISTRATOR'])) return; let swearwords = ["arse","ass","asshole","bastard","bitch","bollocks","... Add solution