What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-09-21 17:38:03
typescript get promise allsettled
/* To get this running on Linux, I needed the latest typescript version: */ npm install -g typescript@latest /* Then in your tsconfig you currently need the ES2020.Promise lib. */ { "compilerOptions": { "lib": [ "ES... Add solution -
Javascript 2021-09-20 16:12:02
promise all in promise all
var p1 = Promise.resolve(3); var p2 = 1337; var p3 = new Promise((resolve, reject) => { setTimeout(resolve, 100, "foo"); }); Promise.all([p1, p2, p3]).then(values => { console.log(values); // [3, 1337, "foo"] }); Add solution -
Other 2021-09-20 12:56:03
preselect ionic picker selected value
async openResultsShownPicker() { const columns = [{name:"resultsShown",options:this.resultsShownOptions, selectedIndex: this.filters.resultsShownIdx }]; const translations = await this.translateService.get(['COMMON.CANCEL','COMMON.DON... Add solution
Best helpers
Ranking is empty